Added sortable model that will not be registered as an inline, but will have a non-sortable parent.

master
Brandon Taylor 2014-10-24 09:15:07 -04:00
parent 4da0deb503
commit 651064d3fb
1 changed files with 8 additions and 0 deletions

View File

@ -130,3 +130,11 @@ class SortableCategoryWidget(SimpleModel, Sortable):
verbose_name_plural = 'Sortable Category Widgets' verbose_name_plural = 'Sortable Category Widgets'
non_sortable_category = SortableForeignKey(NonSortableCategory) non_sortable_category = SortableForeignKey(NonSortableCategory)
class SortableNonInlineCategory(SimpleModel, Sortable):
class Meta(Sortable.Meta):
verbose_name = 'Sortable Category Widget'
verbose_name_plural = 'Sortable Category Widgets'
non_sortable_category = SortableForeignKey(NonSortableCategory)