diff options
| author | Tim Graham <timograham@gmail.com> | 2015-06-22 13:54:35 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-24 16:08:20 -0400 |
| commit | aaacaeb0963c406c4fe6f68c6ae51f4a65878250 (patch) | |
| tree | b100c6ffc345f12342243a8ac684a692b26a9357 /django/db/models/sql | |
| parent | e73842a95fb751f89a8cafc861bfd57d034cd116 (diff) | |
Renamed RemovedInDjangoXYWarnings for new roadmap.
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/aggregates.py | 4 | ||||
| -rw-r--r-- | django/db/models/sql/compiler.py | 4 | ||||
| -rw-r--r-- | django/db/models/sql/query.py | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/django/db/models/sql/aggregates.py b/django/db/models/sql/aggregates.py index 0ebe10e83f..5e73e4fc6a 100644 --- a/django/db/models/sql/aggregates.py +++ b/django/db/models/sql/aggregates.py @@ -6,7 +6,7 @@ import warnings from django.db.models.fields import FloatField, IntegerField from django.db.models.lookups import RegisterLookupMixin -from django.utils.deprecation import RemovedInDjango20Warning +from django.utils.deprecation import RemovedInDjango110Warning from django.utils.functional import cached_property __all__ = ['Aggregate', 'Avg', 'Count', 'Max', 'Min', 'StdDev', 'Sum', 'Variance'] @@ -15,7 +15,7 @@ __all__ = ['Aggregate', 'Avg', 'Count', 'Max', 'Min', 'StdDev', 'Sum', 'Variance warnings.warn( "django.db.models.sql.aggregates is deprecated. Use " "django.db.models.aggregates instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) class Aggregate(RegisterLookupMixin): diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 291ce8298f..b31ab8d875 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -13,7 +13,7 @@ from django.db.models.sql.datastructures import EmptyResultSet from django.db.models.sql.query import Query, get_order_dir from django.db.transaction import TransactionManagementError from django.db.utils import DatabaseError -from django.utils.deprecation import RemovedInDjango20Warning +from django.utils.deprecation import RemovedInDjango110Warning from django.utils.six.moves import zip @@ -338,7 +338,7 @@ class SQLCompiler(object): warnings.warn( "Calling a SQLCompiler directly is deprecated. " "Call compiler.quote_name_unless_alias instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) return self.quote_name_unless_alias(name) def quote_name_unless_alias(self, name): diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 55d083bdff..e88dad536d 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -29,7 +29,7 @@ from django.db.models.sql.where import ( AND, OR, ExtraWhere, NothingNode, WhereNode, ) from django.utils import six -from django.utils.deprecation import RemovedInDjango20Warning +from django.utils.deprecation import RemovedInDjango110Warning from django.utils.encoding import force_text from django.utils.tree import Node @@ -216,7 +216,7 @@ class Query(object): def aggregates(self): warnings.warn( "The aggregates property is deprecated. Use annotations instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) return self.annotations def __str__(self): @@ -973,7 +973,7 @@ class Query(object): def add_aggregate(self, aggregate, model, alias, is_summary): warnings.warn( "add_aggregate() is deprecated. Use add_annotation() instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) self.add_annotation(aggregate, alias, is_summary) def add_annotation(self, annotation, alias, is_summary=False): @@ -1806,7 +1806,7 @@ class Query(object): def set_aggregate_mask(self, names): warnings.warn( "set_aggregate_mask() is deprecated. Use set_annotation_mask() instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) self.set_annotation_mask(names) def set_annotation_mask(self, names): @@ -1820,7 +1820,7 @@ class Query(object): def append_aggregate_mask(self, names): warnings.warn( "append_aggregate_mask() is deprecated. Use append_annotation_mask() instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) self.append_annotation_mask(names) def append_annotation_mask(self, names): @@ -1863,7 +1863,7 @@ class Query(object): def aggregate_select(self): warnings.warn( "aggregate_select() is deprecated. Use annotation_select() instead.", - RemovedInDjango20Warning, stacklevel=2) + RemovedInDjango110Warning, stacklevel=2) return self.annotation_select @property |
