aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorIan Foote2015-02-27 15:22:19 +0000
committerIan Foote2015-02-27 15:22:19 +0000
commit32c885c2a0ddd296b17198cbcce27f539bf39456 (patch)
tree77937964301f4857a622ecc57ea89771a3e439e6 /rest_framework
parentcda74b59971f85da873b0e15da8b4afb4411a026 (diff)
downloaddjango-rest-framework-32c885c2a0ddd296b17198cbcce27f539bf39456.tar.bz2
Ensure validators are new-style classes on python2
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/validators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/validators.py b/rest_framework/validators.py
index ab361614..6ae80b89 100644
--- a/rest_framework/validators.py
+++ b/rest_framework/validators.py
@@ -13,7 +13,7 @@ from rest_framework.exceptions import ValidationError
from rest_framework.utils.representation import smart_repr
-class UniqueValidator:
+class UniqueValidator(object):
"""
Validator that corresponds to `unique=True` on a model field.
@@ -67,7 +67,7 @@ class UniqueValidator:
))
-class UniqueTogetherValidator:
+class UniqueTogetherValidator(object):
"""
Validator that corresponds to `unique_together = (...)` on a model class.
@@ -155,7 +155,7 @@ class UniqueTogetherValidator:
))
-class BaseUniqueForValidator:
+class BaseUniqueForValidator(object):
message = None
missing_message = _('This field is required.')