mirror of
https://github.com/django/django.git
synced 2025-03-28 18:20:49 +00:00
[1.8.x] Fixed #24655 -- Fixed JavaScript path of contrib.admin's related field widget
This commit is contained in:
parent
f21dd827b7
commit
901de5fbce
@ -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):
|
||||
|
@ -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`) .
|
||||
|
Loading…
x
Reference in New Issue
Block a user