Re: Many2Many / Generic Relation filter, doesn't behave like expected, how is the right way to do it?

2010-04-28 Thread HWM-Rocker
On Apr 28, 4:21 am, Tom Evans <tevans...@googlemail.com> wrote: > On Wed, Apr 28, 2010 at 1:00 AM, HWM-Rocker <olafgla...@gmail.com> wrote: > > I have a TaggedObject that has a GenericRelation to Foo with the name > > tags. When I

Many2Many / Generic Relation filter, doesn't behave like expected, how is the right way to do it?

2010-04-27 Thread HWM-Rocker
I have a TaggedObject that has a GenericRelation to Foo with the name tags. When I am searching something like that TaggedObject.objects.filter(Q(tags__tag=1)(tags__tag=4)) I get no Objects in return. But when I filter with (or) '|' then I get 4 Objects. But I have only 3 objects tagged. So the

Re: unexpected Error: OperationalError: no such column: ...

2010-02-02 Thread HWM-Rocker
Hi Thomasz Zielinski, On Jan 20, 6:38 pm, Tomasz Zieliński <tomasz.zielin...@pyconsultant.eu> wrote: > On 20 Sty, 20:52, HWM-Rocker <olafgla...@gmail.com> wrote: > > > o...@olaf-laptop:~/workspace/truemen$ ./manage.py shell > > Not touching you question, you co

unexpected Error: OperationalError: no such column: ...

2010-01-20 Thread HWM-Rocker
Hello Everybody, i got a strange error when i am trying to test some code out of pycrust. I have a small script that sets the environment variable and starts pycrust. o...@olaf-laptop:~/workspace/truemen$ cat debug-shell.sh #!/bin/bash cd /home/olaf/workspace/ && export

Problem with ManyToMany Relationship and related_name

2010-01-14 Thread HWM-Rocker
Hi, I am relatively new with Django but I like what I have seen so far. why does this not work? class Tag(models.Model): text = models.CharField(max_length=200) children = models.ManyToManyField('self', blank=True, null=True, symmetrical=True, related_name='parents') synonyms =