From c7f2d63ec9d6b3141673f51a01b43d95e8d523ad Mon Sep 17 00:00:00 2001 From: matt-leach Date: Mon, 22 Dec 2014 14:44:02 +0000 Subject: [PATCH] calling the correct queryset/get_queryset for VERSION --- adminsortable/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adminsortable/admin.py b/adminsortable/admin.py index 6610ebf..3625cab 100644 --- a/adminsortable/admin.py +++ b/adminsortable/admin.py @@ -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: