mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #7323 -- Fixed a count() edge-case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1484,8 +1484,6 @@ class Query(object):
|
||||
if not self.select:
|
||||
select = Count()
|
||||
else:
|
||||
assert len(self.select) == 1, \
|
||||
"Cannot add count col with multiple cols in 'select': %r" % self.select
|
||||
select = Count(self.select[0])
|
||||
else:
|
||||
opts = self.model._meta
|
||||
|
||||
Reference in New Issue
Block a user