Skip to content

Commit

Permalink
Set default ordering by sortable in SortableStackedInlineBase.
Browse files Browse the repository at this point in the history
Related to #240
  • Loading branch information
darklow committed Jun 19, 2014
1 parent b8b6519 commit 51affa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions suit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class SortableStackedInlineBase(SortableModelAdminBase):
"""
Sortable stacked inline
"""
def __init__(self, *args, **kwargs):
super(SortableStackedInlineBase, self).__init__(*args, **kwargs)
self.ordering = (self.sortable,)

def get_fieldsets(self, *args, **kwargs):
"""
Expand Down

0 comments on commit 51affa3

Please sign in to comment.