As I said in my first post, I understand that all three ways are correct. I just wanted to know "the best", which means that it should always give the same results and should not be deprecated in the future. If I understand you correctly, "=None" is most recent implementation of "is null" and (for me) it seems more natural. Thank you for your answers!
2009/10/20 Russell Keith-Magee <freakboy3...@gmail.com> > > On Tue, Oct 20, 2009 at 9:51 PM, Michael P. Jung <mpj...@terreon.de> > wrote: > > > > You're right in one thing. The whole foo=value thing is not documented. > > From the "exact" subsection in > http://docs.djangoproject.com/en/dev/topics/db/queries/#field-lookups > > """ > For example, the following two statements are equivalent: > > >>> Blog.objects.get(id__exact=14) # Explicit form > >>> Blog.objects.get(id=14) # __exact is implied > > This is for convenience, because exact lookups are the common case. > """ > > The status of __isnull are also documented, in the link I provided in > my last post on this thread. > > Yours, > Russ Magee %-) > > > > -- regards, Mihail --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---