Skip to content

Commit

Permalink
fix sorting when group.order is None
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Sep 18, 2018
1 parent a6f17b0 commit a7a9ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plone/autoform/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,7 @@ def _process_field_moves(self, rules):
self._process_field_moves(rule.get('with', {}))

def _process_group_order(self):
self.groups.sort(key=attrgetter('order'))
try:
self.groups.sort(key=attrgetter('order'))
except TypeError:
pass

0 comments on commit a7a9ca5

Please sign in to comment.