I'd like to see a way to customize the list_display, search_fields,
and list_filter (and possibly list_display_links?) attributes of
ModelAdmin in the same way as change_list_queryset, etc. The use case
is to hide fields in the change list depending on who is accesing the
page. This should be a pretty simple and non-invasive change to make.
ModelAdmin would need a few new methods following this pattern:
def get_list_display(self, request):
return self.list_display
and ModelAdmin.changelist_view would need to be modified to call the
new methods rather than accessing their corresponding attributes.
I'm volunteering to put together a patch if this sounds worthwhile.
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
-~----------~----~----~----~------~----~------~--~---