105👍
✅
class MyModelAdmin(admin.ModelAdmin):
...
def changelist_view(self, request, extra_context=None):
extra_context = extra_context or {}
extra_context['some_var'] = 'This is what I want to show'
return super(MyModelAdmin, self).changelist_view(request, extra_context=extra_context)
Source:stackexchange.com