If we have multiple files defining widget classes, and if widgets have e.g
class W1(forms.DateInput):
class Media:
css = {'all':('common/css/ui-darkness/jquery-ui-1.8.9.custom.css',),}
js = ('common/js/jquery-ui-1.8.9.custom.min.js',)
class W2(forms.TextArea):
class Media:
js = ('common/js/jquery-ui-1.8.9.custom.min.js',)
and we use both W2 and W1 on the same page, that would not be good. I would like to ask what is a possible solution to manage the widgets' media requirements/classes such that I can ensure using multiple widgets would not have duplicate js or css appearing more than once?