Implement sorting for ListView columns without changing your views.
Project description
Implement sorting for ListView columns without changing your views.
Installation
Get it from the cheeseshop:
pip install django_resort
Usage
Read on:
Include django_resort in your INSTALLED_APPS settings.
Load the tags:
{% load resort %}
Jut before the for loop iterating through the object_list, include:
{% auto_sort object_list %} {% for object in object_list %}
In your table header:
<th>{% sort_link field.verbose_name|title field.name %}</th>
Credits
This project is primarily based upon django-sorting which it seems is no longer actively maintained as I could not get it to install using pip.
History
0.1.0 (2013-12-3)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_resort-0.1.0.tar.gz
(6.1 kB
view details)
File details
Details for the file django_resort-0.1.0.tar.gz
.
File metadata
- Download URL: django_resort-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f367827f3d75ca781fa1ad2ebc2b9c26a43e8185aee821fbe598b8755124445c |
|
MD5 | b12ff4805b9466377525d49c0615beb3 |
|
BLAKE2b-256 | dbcd2f6bef16d3eeeaf2d9169c1d9cf9ba32c467a83fa2c904d0c01f36a7f62b |