mirror of
https://github.com/django/django.git
synced 2024-12-25 10:35:48 +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:
parent
14695dc02a
commit
991039dd1e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user