[patch] modify as_hidden() to handle MultipleChoiceField correctly
|Reported by:||Honza Král <Honza.Kral@…>||Owned by:||adrian|
|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.