[patch] modify as_hidden() to handle MultipleChoiceField correctly
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.