Permalink
Browse files

Fixed #587 - iteration through formfields in a FormWrapper is now all…

…owed (thanks, Boffbowsh)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 14695dc commit 991039dd1e1f89dc1d20c35cdd216abb110a3bee @jacobian jacobian committed Nov 15, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/core/formfields.py
View
1 django/core/formfields.py
@@ -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)

0 comments on commit 991039d

Please sign in to comment.