Re: weird "must be an intance" error

2011-04-18 Thread Bobby Roberts
haha Thanks for that... i never would have figured it out On Apr 18, 4:59 pm, akaariai wrote: > On Apr 18, 11:38 pm, Bobby Roberts 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 ins

Re: weird "must be an intance" error

2011-04-18 Thread akaariai
On Apr 18, 11:38 pm, Bobby Roberts 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 name

Re: weird "must be an intance" error

2011-04-18 Thread Bobby Roberts
oops... forgot to clarify that Item.tid is a FK to printLocation -- 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+unsu

Re: weird "must be an intance" error

2011-04-18 Thread akaariai
On Apr 18, 11:03 pm, Bobby Roberts wrote: > considering this snippet: > > valPrintlocation=int(request.POST.get('printlocation')) >                         if valPrintlocation==-1: >                                 needsprinting=0 >                         else: >                                 n

weird "must be an intance" error

2011-04-18 Thread Bobby Roberts
considering this snippet: valPrintlocation=int(request.POST.get('printlocation')) if valPrintlocation==-1: needsprinting=0 else: needsprinting=1 Item = ItemTr