Ticket #2899: formwrapper_defaults.diff
File formwrapper_defaults.diff, 668 bytes (added by , 18 years ago) |
---|
-
django/forms/__init__.py
108 108 This allows dictionary-style lookups of formfields. It also handles feeding 109 109 prepopulated data and validation error messages to the formfield objects. 110 110 """ 111 def __init__(self, manipulator, data , error_dict, edit_inline=True):111 def __init__(self, manipulator, data={}, error_dict={}, edit_inline=True): 112 112 self.manipulator, self.data = manipulator, data 113 113 self.error_dict = error_dict 114 114 self._inline_collections = None