Ticket #3678: baseform_sorteddict.patch

File baseform_sorteddict.patch, 561 bytes (added by Chris Beaven, 18 years ago)
  • django/newforms/forms.py

     
    6767        # alter self.fields, we create self.fields here by copying base_fields.
    6868        # Instances should always modify self.fields; they should not modify
    6969        # self.base_fields.
    70         self.fields = self.base_fields.copy()
     70        self.fields = SortedDict(self.base_fields)
    7171
    7272    def __unicode__(self):
    7373        return self.as_table()
Back to Top