#3193: [patch] modify as_hidden() to handle MultipleChoiceField correctly
-----------------------------------------------+----------------------------
Reporter: Honza Kr�l <[EMAIL PROTECTED]> | Owner: adrian Type: defect | Status: new Priority: normal | Milestone: Component: django.newforms | Version: SVN Severity: normal | Keywords: as_hidden MultipleChoiceField
-----------------------------------------------+----------------------------
It is a quick and dirty patch (works though ;) ), but since the
information on what field requires list as value is gone, I had to use the
Field class to identify the correct value. I don't like the idea of
checking for Field;s class every time I render a hidden field, but it was
the best I could do without going further into the code.

The added widget class renders multiple {{{ <input type="hidden" .. > }}}
tags (one for every checked option).

I will be glad for any feedback and/or comments.

--
Ticket URL: <http://code.djangoproject.com/ticket/3193>
Django <http://code.djangoproject.org/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to