Skip to content

Instantly share code, notes, and snippets.

@loic

loic/foo.diff Secret

Created June 23, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loic/14aa71293c2cf2d918e8 to your computer and use it in GitHub Desktop.
Save loic/14aa71293c2cf2d918e8 to your computer and use it in GitHub Desktop.
diff --git a/django/db/models/aggregates.py b/django/db/models/aggregates.py
index b51fe56..89f7b8e 100644
--- a/django/db/models/aggregates.py
+++ b/django/db/models/aggregates.py
@@ -41,7 +41,7 @@ class Aggregate(Func):
def _patch_aggregate(self, query):
"""
Helper method for patching 3rd party aggregates that do not yet support
- the new way of subclassing. This method should be removed in 2.0
+ the new way of subclassing. This method should be removed in Django 1.10.
add_to_query(query, alias, col, source, is_summary) will be defined on
legacy aggregates which, in turn, instantiates the SQL implementation of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment