diff options
| author | Craig Blaszczyk | 2015-01-07 12:46:23 +0000 | 
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-07 12:46:23 +0000 | 
| commit | 91e316f7810157474d6246cd0024bd7f7cc31ff7 (patch) | |
| tree | 1279d952e1bbc7cfb281cea90b7d215e15534ea1 /rest_framework/serializers.py | |
| parent | 9a4267049ba37883e3e0c21b5d453b9551343b8d (diff) | |
| download | django-rest-framework-91e316f7810157474d6246cd0024bd7f7cc31ff7.tar.bz2 | |
prefer single quotes in source and double quotes in user visible strings; add some missing full stops to user visible strings
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 9d7c8884..623ed586 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): | 
