From 991039dd1e1f89dc1d20c35cdd216abb110a3bee Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 15 Nov 2005 23:28:43 +0000 Subject: [PATCH] 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 --- django/core/formfields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/core/formfields.py b/django/core/formfields.py index 0333d09304..e31867ce6e 100644 --- a/django/core/formfields.py +++ b/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)