Hello,

I'm building an application with a simple form for asking questions to 
the site's administrators. I created the form using the ModelForm object.

Every Question object has a text and an author_id, which is the id of 
the user currently logged in.

Automagically generating the form is good, but it creates multiple 
choice for the author_id field. Is there anyway for changing this 
behaviour and automatically fill this field with the user id?

Is it correct to manually create a hidden field with the user.id value?


Regards,
Salvatore


--~--~---------~--~----~------------~-------~--~----~
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