Ticket #2899: formwrapper_defaults.diff

File formwrapper_defaults.diff, 668 bytes (added by john@…, 18 years ago)

Patch for ticket #2899

  • django/forms/__init__.py

     
    108108    This allows dictionary-style lookups of formfields. It also handles feeding
    109109    prepopulated data and validation error messages to the formfield objects.
    110110    """
    111     def __init__(self, manipulator, data, error_dict, edit_inline=True):
     111    def __init__(self, manipulator, data={}, error_dict={}, edit_inline=True):
    112112        self.manipulator, self.data = manipulator, data
    113113        self.error_dict = error_dict
    114114        self._inline_collections = None
Back to Top