Russell Keith-Magee posted this in a separate thread: > Article.objects.all().count() reads quite obviously as the count of > all articles. However, Article.objects.all().count('title') reads (to > me) like an inelegant way of saying 'a count of all titles'. This > isn't what your proposal would return. What you are proposing can > already be acheived using > > Article.objects.filter(fieldname__isnull=False).count() > > which, IMHO, reads better, and is more flexible.
I'll buy that. (Jacob and I were also considering the count(distinct columnname) SQL syntax and decided not to target that since it was already easy to combine distinct with count(). You point out that this logic also holds for isnull. Point taken.) I'll rework my patch for 1435 to remove that change. Rock --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers -~----------~----~----~----~------~----~------~--~---