﻿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
27317	Make Form subclasses combine Form.Media from all parents	James Pic	nobody	"I wanted to define a mixin to use with Form classes that would add extra JS. So, I tried how Form.Media would behave with inheritance, and it turns out they don't merge. For example:

{{{
class A(Form):
    class Media:
        js = ('jquery.js', 'a.js')

class B(Form):
    class Media:
        js = ('jquery.js', 'b.js')

class C(A, B):
    pass
}}}

I expected:

{{{
C.Media.js == ('jquery.js', 'a.js', 'b.js')
}}}

But that results instead in:

{{{
C.Media.js = ('jquery.js', 'a.js')
}}}

Eventually, I wanted to push it a bit further and use a Mixin, having exactly the same but with `A(object)` instead of `A(Form)`.

Can I work on a patch for this ?

Thanks for your support"	New feature	new	Forms	1.10	Normal			James Pic	Accepted	0	0	0	0	0	0
