On Apr 1, 8:16 pm, rizzoo <michaelros...@gmail.com> wrote:
> How do I make a field hidden when using ModelForm?  I tried
> HiddenInput but it appears to be ignored.
>
> code:http://dpaste.com/22290/
> Line 9
>
> Here's what View Source shows for that line in the browners:
> <label for="id_last">Last:</label><input id="id_last" type="text"
> name="last" maxlength="45"
>

Well it looks like you are trying to hide the field "name". So why are
you showing us the HTML for the field named "last"?

I just did this the other day and it worked for me.

Can you post your model code too?

BN
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to