mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-26 19:00:23 +00:00
Fixed call to queryset object for Django >= 1.7
This commit is contained in:
parent
13945375f1
commit
d332563e27
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ class SortableAdminBase(object):
|
|||
object_tools block to take people to the view to change the sorting.
|
||||
"""
|
||||
|
||||
if get_is_sortable(self.queryset(request)):
|
||||
qs_method = getattr(self, 'get_queryset', self.queryset)
|
||||
|
||||
if get_is_sortable(qs_method(request)):
|
||||
self.change_list_template = \
|
||||
self.sortable_change_list_with_sort_link_template
|
||||
self.is_sortable = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue