Ticket #6000: 00-reset-form.diff

File 00-reset-form.diff, 498 bytes (added by Petr Marhoun <petr.marhoun@…>, 17 years ago)
  • django/newforms/forms.py

    === modified file 'django/newforms/forms.py'
     
    240240
    241241    def reset(self):
    242242        """Return this form to the state it was in before data was passed to it."""
     243        self.is_bound = False
    243244        self.data = {}
    244         self.is_bound = False
    245         self.__errors = None
     245        self.files = {}
     246        self._errors = None
    246247
    247248    def _get_media(self):
    248249        """
Back to Top