branch | stable |
changeset 3874 | 7d0d4a6be046 |
parent 3689 | deb13e88e037 |
child 3889 | 8902b8745918 |
child 4212 | ab6573088b4a |
--- a/web/views/autoform.py Wed Nov 18 12:32:57 2009 +0100 +++ b/web/views/autoform.py Wed Nov 18 12:50:23 2009 +0100 @@ -180,6 +180,8 @@ except form.FieldNotFound: # meta attribute such as <attr>_format continue + fnum = len(self.fields) + self.fields.sort(key=lambda f: f.order is None and fnum or f.order) self.maxrelitems = self.req.property_value('navigation.related-limit') self.force_display = bool(self.req.form.get('__force_display'))