#10774: Accessing form media subtypes ('js', 'css') in templates does not work
----------------------------------+-----------------------------------------
 Reporter:  tarequeh              |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  Forms                 |     Version:  SVN       
 Keywords:  form media typeerror  |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 Accessing form.media.js or form.media.css from templates does not work
 because the keys ('js', 'css') gets passed in as unicode strings. The
 {{{__getitem__}}} function for django form widget Media object
 [http://code.djangoproject.com/browser/django/trunk/django/forms/widgets.py#L78
 defined here] raises {{{TypeError: '__init__() keywords must be
 strings'}}} whenever name variable is a unicode string.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10774>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to