haha Thanks for that... i never would have figured it out
On Apr 18, 4:59 pm, akaariai <akaar...@gmail.com> wrote: > On Apr 18, 11:38 pm, Bobby Roberts <tchend...@gmail.com> wrote: > > > oops... forgot to clarify that Item.tid is a FK to printLocation > > Then you would want to assign to tid_id. For foreign keys the tid > wants an instance, the tid_id can be assigned the "db value" for that > foreign key. I am not sure if the tid_id can be named something else. > If it can be, you can find out the right field name to assign to by > checking out ItemTracking._meta.get_field_by_name('tid')[0].attname in > the django shell. > > - Anssi -- 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.