On May 12, 4:34 pm, Nick Serra <nickse...@gmail.com> wrote:
> Thanks for the response. I actually will already have the PK, and am
> trying to avoid grabbing an instance of the actual item object.
Yes, that's what I meant. You can assign the foreign key directly when
instantiating an object, without having to get the item object by
using the FOO_id field.

  manager = Manager(item_id=mypkvalue)

(sorry, previous example was missing the "_id" suffix.)
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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