You are trying to override change_view instead of changelist_view.
Otherwise your approach must work.
class CustomAdmin(admin.ModelAdmin):
def changelist_view(whatever_args_are_here):
if condition:
self.list_display = custom_list
return super(CustomAdmin, self).changelist_view(...)
On Jul 9, 6:16 am, rahul jain <[email protected]> wrote:
> anyone on this ?
--
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en.