Re: Creating an empty queryset

2007-01-11 Thread medhat
Well, the patch now has documentation and tests. -- Thanks, Medhat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: Creating an empty queryset

2007-01-11 Thread Russell Keith-Magee
On 1/11/07, medhat <[EMAIL PROTECTED]> wrote: > > The patch is in http://code.djangoproject.com/ticket/3283 Remember - no patch is complete without unit tests and documentation... Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you

Re: Creating an empty queryset

2007-01-11 Thread medhat
The patch is in http://code.djangoproject.com/ticket/3283 -- Thanks, Medhat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Creating an empty queryset

2007-01-10 Thread Russell Keith-Magee
On 1/10/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Adam Seering schrieb: > > I would strongly second that. This seems to have fallen somewhat > > dead, though. Any thoughts?; anyone in favor of it?; anyone know of > > any reasons not to do it? > > +1 from me. I have already missed it

Re: Creating an empty queryset

2007-01-10 Thread Michael Radziej
Adam Seering schrieb: > I would strongly second that. This seems to have fallen somewhat > dead, though. Any thoughts?; anyone in favor of it?; anyone know of > any reasons not to do it? +1 from me. I have already missed it several times. The "where 1=0 solution" looks stupid. And the

Re: Creating an empty queryset

2007-01-10 Thread Adam Seering
I would strongly second that. This seems to have fallen somewhat dead, though. Any thoughts?; anyone in favor of it?; anyone know of any reasons not to do it? Adam On Dec 27, 2006, at 1:42 PM, Adrian Holovaty wrote: > > On 12/27/06, medhat <[EMAIL PROTECTED]> wrote: >> Is there a way to

Re: Creating an empty queryset

2006-12-27 Thread Jeremy Dunck
On 12/27/06, medhat <[EMAIL PROTECTED]> wrote: ... Right now I return an empty list, but this causes an error in generic views. I think you want allow_empty=True. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Creating an empty queryset

2006-12-27 Thread Adrian Holovaty
On 12/27/06, medhat <[EMAIL PROTECTED]> wrote: Is there a way to create an empty queryset?! Let's say I have a manager to return all the items with the given tags, and I want to return "no items" if one of the given tags does not exist. Right now I return an empty list, but this causes an error

Creating an empty queryset

2006-12-27 Thread medhat
Hi, Is there a way to create an empty queryset?! Let's say I have a manager to return all the items with the given tags, and I want to return "no items" if one of the given tags does not exist. Right now I return an empty list, but this causes an error in generic views. Is there a way to create