Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Rajesh Dhawan
On Jun 20, 12:07 pm, Christoph Neuroth <[EMAIL PROTECTED]> wrote: > Theres still a problem with this :( > Request.objects.filter(parameters=1, parameters=2) > is not the same as > Request.objects.filter(parameters=2, parameters=1) Yes. Sorry for suggesting that query earlier. Please see below.

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Theres still a problem with this :( Request.objects.filter(parameters=1, parameters=2) is not the same as Request.objects.filter(parameters=2, parameters=1) However the following two queries seem to be working as expected now (i'm pretty sure they didnt work when I tried it the last time - or I h

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Hi, just did an svn update, your code works. I tried that before but it wasnt implemented in my older version. Thanks a lot :) chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Rajesh Dhawan
Hi Chris, > ---snip--- > class RequestParameters(models.Model): > parameter = models.CharField(max_length=64) > value = models.CharField(max_length=64) > > class Request(models.Model): > locale = models.CharField(max_length=32, default=LOCALES[1][0], > choices=LOCALES) > lastCheck = model

Querying for an item with two values in a Many-To-Many Relation

2008-06-20 Thread Christoph Neuroth
Hi django-users :) I'm currently working on my first real django project and got stuck using the DB API: I defined these models: ---snip--- class RequestParameters(models.Model): parameter = models.CharField(max_length=64) value = models.CharField(max_length=64) class Request(models.Model):