Code

Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#587 closed enhancement (fixed)

[patch] Allow iteration through formfields in a FormWrapper

Reported by: Boffbowsh Owned by: adrian
Component: Template system Version:
Severity: normal Keywords:
Cc: paul.bowsher@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Index: /usr/local/django_src/django/core/formfields.py
===================================================================
--- /usr/local/django_src/django/core/formfields.py     (revision 764)
+++ /usr/local/django_src/django/core/formfields.py     (working copy)
@@ -107,6 +107,7 @@
     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)

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.