Exactly what I was looking for, thanks!

On May 12, 11:50 am, Daniel Roseman <[email protected]> wrote:
> On May 12, 4:34 pm, Nick Serra <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to