Re: django.db.models.Q

2008-11-09 Thread Alex Koshelev
http://docs.djangoproject.com/en/dev/topics/settings/#designating-the-settings On Mon, Nov 10, 2008 at 07:13, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > >>> from django.db.models import Q > > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packa

Re: django.db.models.Q for OR lookup is having issues with NULL values

2008-01-02 Thread Malcolm Tredinnick
On Wed, 2008-01-02 at 14:25 -0800, Peter wrote: > I am trying to filter by users who are not staff, but this user column > accepts NULL values in my model. > > As a result I need to check for user__isnull, since > user__is_staff=False will not work for null values. > > I tried: > Post.objects