﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18180	add get_context_data to ModelAdmin/AdminSite	Stefano Apostolico	nobody	"add get_context_data to ModelAdmin/AdminSite

it's useful have a common place where configure common context variables ( as in class based view ).
Both ModelAdmin/AdminSite have no similar method, and you are forced to override all the views to put a
common object into the context (context processor is not a good solution because is involved also in non-admin's views).

The patch simply add {{{ get_context_data(**kwargs) }}} to ModelAdmin/AdminSite and change lines like
{{{
    context = {'key':value}
}}}
to
{{{
    context = self.get_context_data(**{'key':value})
}}}
if the idea is good maybe the patch can be changed to

{{{
    context = self.get_context_data(key1=val1, key2=val2,)
}}}




"	New feature	closed	contrib.admin	dev	Normal	duplicate			Design decision needed	1	0	0	0	0	0
