I'd like to change the 'fields' attribute on ModelAdmin to
'fieldsets', and use 'fields' for a tuple of field names rather than a
list of (fieldset_name, options) tuples. Only one of those two options
should be specified. In addition, the fieldsets_add and
fieldsets_change methods would return a list of (fieldset_name,
options) tuples rather than actual Fieldset objects.

    class MyAdmin(ModelAdmin):
        fields = ('one', 'two', 'three')

would be eqivalent to:

    class MyAdmin(ModelAdmin):
        fielsets = (
            (None, {'fields': ('one', 'two', 'three')})
        )

I think those changes make admin configuration a little more
consistent and understandable, and it would help me simplify the
implementation a bit. Changing 'fields' to a plain old list would make
it more consistent with prepopulated_fields, raw_id_fields, and
search_fields. Essentially, the current 'fields' argument is really
specifying fieldsets anyhow, not fields.

Any serious opposition?

Joseph

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

Reply via email to