Hi,
Code looks fine to me, maybe you could give us the exact error message ?
You could also try request.user.id or something to get the actual pk and not only the user object but that’s just a guess.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/yXHgVvDdOaEJ.
To post to this group, send email to
django...@googlegroups.com.
To unsubscribe from this group, send email to
django-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
Developer
LexisNexisA-1030 Wien, Marxergasse 25
Tel.: +43 1 53452 1573
Fax.: +43 1 534 52 146
. . . . . . . . . . . . . . . . . . . . . . . . . .