#14655: formsets should be iterable -------------------+-------------------------------------------------------- Reporter: kenth | Owner: nobody Status: new | Milestone: Component: Forms | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 1 | -------------------+-------------------------------------------------------- I have a inlineformset where I need to be able to display some of the "extra" forms (that I initialize) before some of the "initial" forms retrieved from the db. This would be easy if I could just override formset's __iter__ method and get the forms to come out in an order different from the creation order. This patch adds this hook.
This patch also makes it possible to say "for form in formset" (instead of "for form in formset.forms") in both code & templates. There are no backward compatibility issues. The pattern "for form in formset" is also closer to the "for field in form" idiom. -- Ticket URL: <http://code.djangoproject.com/ticket/14655> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.