aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorCraig Blaszczyk2015-01-07 12:01:11 +0000
committerCraig Blaszczyk2015-01-07 12:01:11 +0000
commit4c32083b8b59a50877633910055313dad7bb117e (patch)
tree4de7729161f512c7c14beaafc4a6f776ce772cc1 /rest_framework/serializers.py
parentfe5d93c8cbc5f3a9b1b6715208c70f485be68bdf (diff)
downloaddjango-rest-framework-4c32083b8b59a50877633910055313dad7bb117e.tar.bz2
use double quotes for user visible strings; end user visible strings in full stops; add some missing translation tags
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 623ed586..9d7c8884 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -296,7 +296,7 @@ def get_validation_error_detail(exc):
@six.add_metaclass(SerializerMetaclass)
class Serializer(BaseSerializer):
default_error_messages = {
- 'invalid': _('Invalid data. Expected a dictionary, but got {datatype}.')
+ 'invalid': _("Invalid data. Expected a dictionary, but got {datatype}.")
}
@property
@@ -473,7 +473,7 @@ class ListSerializer(BaseSerializer):
many = True
default_error_messages = {
- 'not_a_list': _('Expected a list of items but got type `{input_type}`.')
+ 'not_a_list': _("Expected a list of items but got type `{input_type}`.")
}
def __init__(self, *args, **kwargs):