I've set up my Media class for a widget as such:

class InternationalSlugWidget(forms.TextInput):
    class Media:
        js = ('js/international_slug.js')

The problem is Django keeps pumping out the following import
statements:

<script type="text/javascript" src="/media/j"></script>
<script type="text/javascript" src="/media/s"></script>
<script type="text/javascript" src="/"></script>
<script type="text/javascript" src="/media/i"></script>
<script type="text/javascript" src="/media/n"></script>
<script type="text/javascript" src="/media/t"></script>
...etc

My media root string looks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to