Media not properly merged with admin widgets
|Reported by:||mrts||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The functionality introduced in  doesn't deal with media. If I provide media in my custom form, it breaks the admin js widgets.
class Foo(models.Model): date = models.DateField() # A class that adds TinyMCE to text fields. class TinyMCEForm(forms.ModelForm): media = forms.Media( js = ['/site_media/js/tiny_mce/tiny_mce.js', '/site_media/js/add_editor.js']) class FooAdmin(admin.ModelAdmin): form = admin_forms.TinyMCEForm save_on_top = True admin.site.register(Foo, FooAdmin)
Leaving the custom form out of
FooAdmin brings the date picker back.