[1.8.x] Fixed #24655 -- Fixed JavaScript path of contrib.admin's related field widget

This commit is contained in:
Eric Whitmire 2015-04-16 17:11:10 -07:00 committed by Tim Graham
parent f21dd827b7
commit 901de5fbce
2 changed files with 4 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class RelatedFieldWidgetWrapper(forms.Widget):
@property
def media(self):
media = Media(js=['admin/js/related-widget-wrapper.js'])
media = Media(js=[static('admin/js/related-widget-wrapper.js')])
return self.widget.media + media
def get_related_url(self, info, action, *args):

View File

@ -58,3 +58,6 @@ Bugfixes
* Prevented the loss of ``null``/``not null`` column properties during field
alteration of MySQL databases (:ticket:`24595`).
* Fixed JavaScript path of ``contrib.admin``s related field widget when using
alternate static file storages (:ticket:`24655`) .