calling the correct queryset/get_queryset for VERSION

master
matt-leach 2014-12-22 14:44:02 +00:00
parent cf1a2103dd
commit c7f2d63ec9
1 changed files with 5 additions and 1 deletions

View File

@ -278,7 +278,11 @@ class SortableInlineBase(SortableAdminBase, InlineModelAdmin):
' and SortableStackedInline must inherit from Sortable')
def get_queryset(self, request):
qs = super(SortableInlineBase, self).get_queryset(request)
if VERSION < (1, 6):
qs = super(SortableInlineBase, self).queryset(request)
else:
qs = super(SortableInlineBase, self).get_queryset(request)
if get_is_sortable(qs):
self.model.is_sortable = True
else: