1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00

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

View File

@ -108,6 +108,7 @@ class FormWrapper:
def __init__(self, manipulator, data, error_dict): def __init__(self, manipulator, data, error_dict):
self.manipulator, self.data = manipulator, data self.manipulator, self.data = manipulator, data
self.error_dict = error_dict self.error_dict = error_dict
self.fields = [self.__getitem__(field.field_name) for field in self.manipulator.fields]
def __repr__(self): def __repr__(self):
return repr(self.data) return repr(self.data)