#24655: Admin RelatedFieldWidgetWrapper does not build static url correctly
-------------------------------+--------------------
     Reporter:  ewhitmire      |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  contrib.admin  |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 RelatedFieldWidgetWrapper requires 'admin/js/related-widget-wrapper.js'
 but doesn't pass it through the static url builder. As it is,
 django/forms/widgets.py always prepends STATIC_URL. However, this doesn't
 work when using a Storage class like S3BotoStorage that doesn't use
 STATIC_URL and results in a 404 error.

 It looks like the fix is simply to add a call to static before passing the
 url to Media.

 This functionality has changed in master so I think this only exists in
 1.8.

--
Ticket URL: <https://code.djangoproject.com/ticket/24655>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.a74d7dcf53a85d76c15cb77d5be84286%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to