Admin interface fields should be customizable
|Reported by:||Owned by:||Adrian Holovaty|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
While radio_admin is useful, this should be more general. If someone wants a custom date field, it shouldn't require tinkering with the source code. Personally, I want to use it for ForeignKey fields when the reference table has over 1000 entries.
An example of how I see it.
class Album(meta.Model): title = meta.CharField(maxlength=30) artist = meta.ForeignKey(Artist, admin_interface = 'app/my_artist_template') format = meta.CharField(maxlength=4, choices = CD_OR_LP, admin_interface = django.whatever.radio_admin)
I create a small template (that gets used again in the public interface) that creates just the code for the field. Somewhere there's an example template that's just perfect for radio choice fields.