From 651064d3fbe7af57590d16b4ca83023eabbf92ca Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Fri, 24 Oct 2014 09:15:07 -0400 Subject: [PATCH] Added sortable model that will not be registered as an inline, but will have a non-sortable parent. --- sample_project/app/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sample_project/app/models.py b/sample_project/app/models.py index acd7643..4e33a41 100644 --- a/sample_project/app/models.py +++ b/sample_project/app/models.py @@ -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)