Actually, the QuerySet objects are lazy. This is, there's no such query until you access the data.
Or so do I believe. El jue, 29-11-2007 a las 01:23 -0800, SmileyChris escribi�: > On Nov 28, 9:08 am, Eratothene <[EMAIL PROTECTED]> wrote: > > I need to get all blogs that belong to certain user and are empty (do > > not have any articles). I can't figure out how to make it with without > > extra() method. > > Since you can't do aggregate methods in the ORM yet, you'll just have > to use extra and do a sub-select to count the articles linked to each. > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---