calling the correct queryset/get_queryset for VERSION
This commit is contained in:
@@ -278,7 +278,11 @@ class SortableInlineBase(SortableAdminBase, InlineModelAdmin):
|
|||||||
' and SortableStackedInline must inherit from Sortable')
|
' and SortableStackedInline must inherit from Sortable')
|
||||||
|
|
||||||
def get_queryset(self, request):
|
def get_queryset(self, request):
|
||||||
|
if VERSION < (1, 6):
|
||||||
|
qs = super(SortableInlineBase, self).queryset(request)
|
||||||
|
else:
|
||||||
qs = super(SortableInlineBase, self).get_queryset(request)
|
qs = super(SortableInlineBase, self).get_queryset(request)
|
||||||
|
|
||||||
if get_is_sortable(qs):
|
if get_is_sortable(qs):
|
||||||
self.model.is_sortable = True
|
self.model.is_sortable = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user