Is possible to reuse the table header sort feature of the admin forms in my own views and templates?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, not re-use of the admin’s feature, but you can use http://github.com/directeur/django-sorting for the same effect. It’s ridiculously easy to implement in your own projects.
Use it together with http://code.google.com/p/django-pagination/ though either can be used independently of each other.