Ticket #5505: newforms-forms.patch

File newforms-forms.patch, 668 bytes (added by danlarkin, 17 years ago)
  • django/newforms/forms.py

     
    187187            # value_from_datadict() gets the data from the data dictionaries.
    188188            # Each widget type knows how to retrieve its own data, because some
    189189            # widgets split data over several HTML fields.
     190            if not hasattr(field,'widget'):
     191                continue
    190192            value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name))
    191193            try:
    192194                value = field.clean(value)
Back to Top