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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-11-15 23:28:43 +00:00
parent 14695dc02a
commit 991039dd1e
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class FormWrapper:
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)