#10774 closed (fixed)
Accessing form media subtypes ('js', 'css') in templates does not work
Reported by: | Tareque Hossain | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | form media typeerror | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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 defined here raises TypeError: '__init__() keywords must be strings'
whenever name variable is a unicode string.
Attachments (2)
Change History (7)
by , 16 years ago
Attachment: | form_media_key_access.patch added |
---|
comment:1 by , 16 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
Has patch: | set |
---|
by , 16 years ago
Attachment: | template-media.diff added |
---|
comment:3 by , 16 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Proposed fix for form media subtype access (via key) bug