class MyModelAdmin(admin.ModelAdmin):
...
def changelist_view(self, request, extra_context=None):
extra_context = extra_context or {}
extra_context['my_context'] = 'extra test context'
return super(MyModelAdmin, self).changelist_view(request, extra_context=extra_context)
more detail check django docs
'backend > django' 카테고리의 다른 글
Django: logout when get for django-allauth (0) | 2018.05.23 |
---|---|
Django: architect - enhance ORM for make multiple table (0) | 2018.05.21 |
Django: multiple choices in django admin list_filter (0) | 2018.05.09 |
Django: custom filter for list_filter in admin (0) | 2018.05.05 |
Django: check changed fields in Model save() method (0) | 2018.05.04 |