Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#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)

Change History (1)

comment:1 by Jacob, 19 years ago

Resolution: fixed
Status: newclosed

(In [1253]) Fixed #587 - iteration through formfields in a FormWrapper is now allowed (thanks, Boffbowsh)

Note: See TracTickets for help on using tickets.
Back to Top