Commit 901de5fb authored by Eric Whitmire's avatar Eric Whitmire Committed by Tim Graham
Browse files

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

parent f21dd827
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):
+3 −0
Original line number Diff line number Diff line
@@ -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`) .