Ticket #5123: 5833 ImageField formfield.patch

File 5833 ImageField formfield.patch, 442 bytes (added by Collin Anderson <cmawebsite@…>, 17 years ago)

This adds the missing line that is in the other formfield methods of most of the other fields.

  • db/models/fields/__init__.py

     
    845845
    846846    def formfield(self, **kwargs):
    847847        defaults = {'form_class': forms.ImageField}
     848        defaults.update(kwargs)
    848849        return super(ImageField, self).formfield(**defaults)
    849850
    850851class IntegerField(Field):
Back to Top