Commit History

Author SHA1 Message Date
  Nick Pope 335c9c94ac Simplified imports from django.db and django.contrib.gis.db. 5 years ago
  Mariusz Felisiak 6b178a3e93 Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected annotations with aggregations used in order_by(). 5 years ago
  Mariusz Felisiak 59b4e99dd0 Refs #31136 -- Made QuerySet.values()/values_list() group only by selected annotation. 5 years ago
  Mariusz Felisiak 0f843fdd5b Fixed #31136 -- Disabled grouping by aliases on QuerySet.values()/values_list(). 5 years ago
  Simon Charette 720de4d044 Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists(). 5 years ago
  Simon Charette 5a4d7285bd Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on aggregations. 5 years ago
  Simon Charette a0f34d8fef Refs #31094 -- Added test for not using aliases in GROUP BY clauses. 5 years ago
  Tim Graham 9100c664db Relaxed some query ordering assertions in tests. 5 years ago
  Étienne Beaulé 5f24e7158e Fixed #30665 -- Added support for distinct argument to Avg() and Sum(). 5 years ago
  Étienne Beaulé cb3c2da128 Moved test for distinct Count() to a separate test case. 5 years ago
  CruxBox 34f8eeea4a Fixed #30548 -- Improved exception when expression contains mixed types. 5 years ago
  Simon Charette fb3f034f1c Fixed #30158 -- Avoided unnecessary subquery group by on aggregation. 6 years ago
  Simon Charette 65858119d2 Fixed #30120 -- Fixed invalid SQL in distinct aggregate. 6 years ago
  Nick Pope c690afb873 Refs #28643 -- Changed Avg() to use NumericOutputFieldMixin. 6 years ago
  Simon Charette bc05547cd8 Fixed #28658 -- Added DISTINCT handling to the Aggregate class. 6 years ago
  priyanshsaxena 83b04d4f88 Fixed #29048 -- Added **extra_context to database function as_vendor() methods. 7 years ago
  Mariusz Felisiak 75e45a45e7 Simplified aggregation.tests. 7 years ago
  Simon Charette 160969d970 Refs #24887 -- Stopped mutating a test expression during as_sql(). 7 years ago
  Sergey Fedoseev 29769a9942 Fixed #28382 -- Prevented BaseExpression._output_field from being set if _resolve_output_field() fails. 7 years ago
  Mariusz Felisiak 6e228d0b65 Fixed #28277 -- Added validation of QuerySet.annotate() and aggregate() args. 7 years ago
  Jon Dufresne 2c69824e5a Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. 7 years ago
  chillaranand d6eaf7c018 Refs #23919 -- Replaced super(ClassName, self) with super(). 8 years ago
  Claude Paroz d7b9aaa366 Refs #23919 -- Removed encoding preambles and future imports 8 years ago
  Josh Smeaton 8ade277ab1 Fixed tests that rely on hardcoded id with keepdb 8 years ago
  za 321e94fa41 Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. 8 years ago
  Simon Charette a6074e8908 Fixed #26458 -- Based Avg's default output_field resolution on its source field type. 9 years ago
  Tim Graham 1c8c0837c6 Sorted single letter imports per the latest version of isort. 9 years ago
  Hasan 26ad01719d Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 9 years ago
  Josh Soref 93452a70e8 Fixed many spelling mistakes in code, comments, and docs. 9 years ago
  Tim Graham fd6a299cd0 Refs #14030 -- Removed backwards compatiblity for old-style aggregates. 9 years ago