Re: cannot resolve keyword mmtype__eq into field

2008-04-14 Thread [EMAIL PROTECTED]
http://www.djangoproject.com/documentation/db-api/#field-lookups On Apr 14, 3:02 pm, Jaap <[EMAIL PROTECTED]> wrote: > Thanks - that worked. I then tried > pdata=myfile.objects.filter(mmtype__in=["W", "X"]) > and that worked too! > > Question: where can I find the complete documentation of the fi

Re: cannot resolve keyword mmtype__eq into field

2008-04-14 Thread Jaap
Thanks - that worked. I then tried pdata=myfile.objects.filter(mmtype__in=["W", "X"]) and that worked too! Question: where can I find the complete documentation of the filter expressions? I've been reading a lot about Django and Python - and don't know where to find this information in the pile a

Re: cannot resolve keyword mmtype__eq into field

2008-04-14 Thread Richard Dahl
try this pdata = myfile.objects.filter(mmtype__exact="W") hth, -richard On 4/14/08, Jaap <[EMAIL PROTECTED]> wrote: > > > django version 0.96.1 on windows xp home. > > error is caused by statement in view: > pdata = myfile.objects.filter(mmtype__eq="W") > > where the model is: > > mxt = ( >('

cannot resolve keyword mmtype__eq into field

2008-04-14 Thread Jaap
django version 0.96.1 on windows xp home. error is caused by statement in view: pdata = myfile.objects.filter(mmtype__eq="W") where the model is: mxt = ( ('N", 'Narrow'), ('W', 'Wide'), ) class Example(models.Model): name=models.Charfield(maxlength=30) mmtype=models.Charfield(m