Re: Form Inheritance. Order is Reversed.

2017-01-11 Thread Justin J
For anyone interested, In django/django/forms/forms.py ln 45: # Walk through the MRO. declared_fields = OrderedDict() for base in reversed(new_class.__mro__): # Collect fields from base class. if hasattr(base, 'declared_fields'): declared_fields.update(base.declared_fields) "r

Re: Form Inheritance. Order is Reversed.

2017-01-10 Thread Justin J
Thanks Mathew, I do have multiple forms, and that is why the nested loop. I'm going to try to upgrade to the latest 1.10 and see if it solves the problem. If anything I will be able to use the field_order attribute. I reverted to a commit before I upgraded from 1.5 to 1.8 and the problem was n

RE: Form Inheritance. Order is Reversed.

2017-01-10 Thread Matthew Pava
Hi Justin, Something that caught my eye is {% for d in forms.myforms %}. If you have one form, D, then I don’t think you should need to loop through the other forms. After saying that, it does look like there was a change in field order in Django 1.7. See https://github.com/pennersr/django-all