aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Groß2013-02-26 11:35:39 +0100
committerStephan Groß2013-02-26 11:35:39 +0100
commit956a65f5af2bfc19313dcc7c104eed3ff8cc58d0 (patch)
treecb0645378667556864808a9c0d5053dc0365392c
parentbfff356dd36f7d14d35d8a854cd314e60cf25efa (diff)
downloaddjango-rest-framework-956a65f5af2bfc19313dcc7c104eed3ff8cc58d0.tar.bz2
Fix for python 3 support - thanks @Linovia
-rw-r--r--rest_framework/fields.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 2260c430..d38b726a 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -448,7 +448,7 @@ class DateField(WritableField):
form_field_class = forms.DateField
default_error_messages = {
- 'invalid': _(u"Date has wrong format. Use one of these formats instead: %s"),
+ 'invalid': _("Date has wrong format. Use one of these formats instead: %s"),
}
empty = None
@@ -489,7 +489,7 @@ class DateTimeField(WritableField):
form_field_class = forms.DateTimeField
default_error_messages = {
- 'invalid': _(u"Datetime has wrong format. Use one of these formats instead: %s"),
+ 'invalid': _("Datetime has wrong format. Use one of these formats instead: %s"),
}
empty = None
@@ -536,7 +536,7 @@ class TimeField(WritableField):
form_field_class = forms.TimeField
default_error_messages = {
- 'invalid': _(u"Time has wrong format. Use one of these formats instead: %s"),
+ 'invalid': _("Time has wrong format. Use one of these formats instead: %s"),
}
empty = None