I want to pass the user.is_superuser attribute through a form without
enabling the user to edit it, so I use a hidden field. Like this:

====TEMPLATE=========
<input type="hidden" name="is_superuser" id="id_is_superuser"
value="{{userWrapperForm.is_superuser}}" />
=====================

Weird enough this results in the following HTML:

=========HTML========
<input type="hidden" name="is_superuser" id="id_is_superuser"
value="<input type="checkbox" id="id_is_superuser"
class="vCheckboxField" name="is_superuser" />" />
=====================

And when submitted the received new_data for is_super user is:

===NEW_DATA=========
'is_superuser': ['<input type=']
=====================

Could it be that the user attributes are not 'passable' in a
FormWrapper?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to