diff options
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 0575f91a9f..b0c58b969a 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -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 |
