#587 closed enhancement (fixed)
[patch] Allow iteration through formfields in a FormWrapper
Reported by: | Boffbowsh | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | normal | Keywords: | |
Cc: | paul.bowsher@… | Triage Stage: | Unreviewed |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Index: /usr/local/django_src/django/core/formfields.py =================================================================== --- /usr/local/django_src/django/core/formfields.py (revision 764) +++ /usr/local/django_src/django/core/formfields.py (working copy) @@ -107,6 +107,7 @@ def __init__(self, manipulator, data, error_dict): self.manipulator, self.data = manipulator, data self.error_dict = error_dict + self.fields = [self.__getitem__(field.field_name) for field in self.manipulator.fields] def __repr__(self): return repr(self.data)
Note:
See TracTickets
for help on using tickets.
(In [1253]) Fixed #587 - iteration through formfields in a FormWrapper is now allowed (thanks, Boffbowsh)