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
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
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
3 matches
Mail list logo