mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-23 17:30:25 +00:00
Added sortable model that will not be registered as an inline, but will have a non-sortable parent.
This commit is contained in:
parent
4da0deb503
commit
651064d3fb
1 changed files with 8 additions and 0 deletions
|
|
@ -130,3 +130,11 @@ class SortableCategoryWidget(SimpleModel, Sortable):
|
|||
verbose_name_plural = 'Sortable Category Widgets'
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue