﻿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
10128	widgets Media class has an initialisation error (maybe)	Peter Mott	nobody	"The django.forms.widgets Media instance can be initialised in two ways, either by supplying a dictionary of media arguments or by supplying an existing Media instance via the 'media' keyword. Django does not AFAICT use this second method at all. Anyway it does not work. The offending code:
        {{{ 
        if media:
            media_attrs = media.__dict__
        else:
            media_attrs = kwargs 
        }}}

{{{media.__dict__}}} gives a dictionary keyed by '_css' and '_js' whereas the subsequent code looks for 'css' and 'js' keys. Of course the (non-)role of the media keyword might be something else altogether in which case close the bug. Otherwise one could have {{{media_attrs = {'css':media._css, 'js':media._js}}}} at line two or even change the attributes _css and _js to be the same as the MEDIA_TYPES. "		closed	Forms	1.0		invalid	Media widget initialise		Unreviewed	0	0	0	0	0	0
