Ticket #6733: data_prefix_dict.diff

File data_prefix_dict.diff, 573 bytes (added by Adam Gomaa, 17 years ago)

The patch that solves this particular problem (lets the test case not fail).

  • django/newforms/forms.py

    diff -r 9ff621b77676 django/newforms/forms.py
    a b  
    8181        # Instances should always modify self.fields; they should not modify
    8282        # self.base_fields.
    8383        self.fields = deepcopy(self.base_fields)
     84        if prefix is not None:
     85            self.data = dict([(self.add_prefix(key), value)
     86                              for key, value in self.data.iteritems()])
    8487
    8588    def __unicode__(self):
    8689        return self.as_table()
Back to Top