Fixed check for sortable inline models which prevented JavaScript from loading correctly.
parent
6f2e667e6c
commit
8bcf2bfb2e
|
|
@ -180,10 +180,9 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
||||||
})
|
})
|
||||||
|
|
||||||
for klass in self.inlines:
|
for klass in self.inlines:
|
||||||
is_sortable = klass.model.is_sortable
|
if issubclass(klass, SortableTabularInline):
|
||||||
if issubclass(klass, SortableTabularInline) and is_sortable:
|
|
||||||
self.has_sortable_tabular_inlines = True
|
self.has_sortable_tabular_inlines = True
|
||||||
if issubclass(klass, SortableStackedInline) and is_sortable:
|
if issubclass(klass, SortableStackedInline):
|
||||||
self.has_sortable_stacked_inlines = True
|
self.has_sortable_stacked_inlines = True
|
||||||
|
|
||||||
if self.has_sortable_tabular_inlines or \
|
if self.has_sortable_tabular_inlines or \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue