Fixed check for sortable inline models which prevented JavaScript from loading correctly.

master
Brandon Taylor 2013-05-07 09:22:40 -04:00
parent 6f2e667e6c
commit 8bcf2bfb2e
1 changed files with 2 additions and 3 deletions

View File

@ -180,10 +180,9 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
})
for klass in self.inlines:
is_sortable = klass.model.is_sortable
if issubclass(klass, SortableTabularInline) and is_sortable:
if issubclass(klass, SortableTabularInline):
self.has_sortable_tabular_inlines = True
if issubclass(klass, SortableStackedInline) and is_sortable:
if issubclass(klass, SortableStackedInline):
self.has_sortable_stacked_inlines = True
if self.has_sortable_tabular_inlines or \