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
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
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 = (
>('
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
4 matches
Mail list logo