Can I reuse the table header sort function for admin forms in my own views and templates?
Well, not reusing the admin function, but you can use http://github.com/directeur/django-sorting for the same effect. It is ridiculously easy to implement in your own projects.
Use it with http://code.google.com/p/django-pagination/ , although you can either use it independently.
django-admin.Sorting . get col , o = 1 & ord = asc. , , . order_by.
Source: https://habr.com/ru/post/1758531/More articles:Simple string management C - cXmlSerializer.Deserialize - ignore unnecessary elements? - c #requirement for a function to be built-in in C ++ - c ++change or possibly remove tabs border on tabwidget - androidflash server FMS 3.5 and IIS on the same computer - flashWhen you use the native language for mobile phones, it is best to choose using Phonegap / Titanium / Rhomobile - objective-cApplication using the Google Maps API - c #Returning a link from a function and changing it - c ++Why can I get "Cannot create a handler inside a thread that did not call Looper.prepare ()" using android.os.CountDownTimer? - javaОтправка коллекции элементов в ASP.NET MVC - c#All Articles