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):

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 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