Sorting by Generic foreignkey
Issue #21
closed
Is there any way I can override sorting mechanism to support Generic foreignkey sorting?
Comments (3)
-
repo owner -
reporter Thanks for the quick response. I got it working in my application.
-
repo owner - changed status to closed
- Log in to comment
You can override ordering method from base class and implement your own sorting logic: https://bitbucket.org/pigletto/django-datatables-view/src/6bf355f2aa516397c613a3ec9ea647cd8aecac8a/django_datatables_view/base_datatable_view.py?at=master&fileviewer=file-view-default#base_datatable_view.py-69