On Fri, 2009-01-16 at 03:59 -0800, Gath wrote:
> Great Malcolm, it was supposed to be questionid_id! solved. But i
> wonder why for userid am not doing userid_id???, userid works well !!!

Because request.user is an instance of the User model. Once again,
reading and understanding the error message you were seeing explains
both results. You must assign an object of the correct type to a
ForeignKey field.

We put a lot of effort into generating descriptive error messages in
Django. Please read them and think about what they're saying. Otherwise
we become sad.

Regards,
Malcolm



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