hi,

I read the patch in #8306, and looks like formfield_overrides allows
to change the default widget only on a field type basis:

```
formfield_overrides = {
    models.TextField: {'widget': RichTextEditorWidget},
}
```

Wouldn't it be more granular to allow the overrides on the field name
basis? something like:
```
# assume years_range = range(2008, 1900)
formfield_overrides = { 'body': RichTextEditorWidget(), 'birthday':
SelectDateWidget(years=years_range) }
```

note that I don't pass class anymore but instances, in order to allow
some configuration.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to