Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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:

  1. Include django_resort in your INSTALLED_APPS settings.

  2. Load the tags:

    {% load resort %}
    
  3. Jut before the for loop iterating through the object_list, include:

    {% auto_sort object_list %}
    {% for object in object_list %}
    
  4. 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.
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_resort-0.1.0.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Dec 2, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting