Ticket #10058: 10058.diff
File 10058.diff, 632 bytes (added by , 16 years ago) |
---|
-
options.py
103 103 104 104 return formfield 105 105 106 # For FileFields and ImageFields add a link to the current file. 107 if isinstance(db_field, (models.FileField, models.ImageField)): 108 kwargs['widget'] = widgets.AdminFileWidget 109 106 110 # If we've got overrides for the formfield defined, use 'em. **kwargs 107 111 # passed to formfield_for_dbfield override the defaults. 108 112 if db_field.__class__ in self.formfield_overrides: