aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorCarlton Gibson2014-06-24 10:30:08 +0200
committerCarlton Gibson2014-06-24 10:30:08 +0200
commitd98245ac2234c2377a6243f8314b31fd68c902af (patch)
tree5fa88ae09d97a25e20d0dbf254ad028ef4351bca /rest_framework/mixins.py
parent3f727ce738776838d8420450ce28485954fbb097 (diff)
parent2489e38a06f575aa144644eee683bd87f20186ef (diff)
downloaddjango-rest-framework-d98245ac2234c2377a6243f8314b31fd68c902af.tar.bz2
Merge branch '2.4.0' of github.com:tomchristie/django-rest-framework into #1559
Conflicts: docs/topics/release-notes.md
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index e1a24dc7..2cc87eef 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -26,14 +26,14 @@ def _get_validation_exclusions(obj, pk=None, slug_field=None, lookup_field=None)
include = []
if pk:
- # Pending deprecation
+ # Deprecated
pk_field = obj._meta.pk
while pk_field.rel:
pk_field = pk_field.rel.to._meta.pk
include.append(pk_field.name)
if slug_field:
- # Pending deprecation
+ # Deprecated
include.append(slug_field)
if lookup_field and lookup_field != 'pk':
@@ -79,10 +79,10 @@ class ListModelMixin(object):
# `.allow_empty = False`, to raise 404 errors on empty querysets.
if not self.allow_empty and not self.object_list:
warnings.warn(
- 'The `allow_empty` parameter is due to be deprecated. '
+ 'The `allow_empty` parameter is deprecated. '
'To use `allow_empty=False` style behavior, You should override '
'`get_queryset()` and explicitly raise a 404 on empty querysets.',
- PendingDeprecationWarning
+ DeprecationWarning
)
class_name = self.__class__.__name__
error_msg = self.empty_error % {'class_name': class_name}