Commits

Anonymous committed a300064

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

  • Participants
  • Parent commits 220da3d

Comments (0)

Files changed (1)

django/core/formfields.py

     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)