From 7080014002c8ef092930f3e6c6e8a7dce7fab187 Mon Sep 17 00:00:00 2001 From: Rick Riehle Date: Wed, 28 Dec 2016 11:23:46 -0700 Subject: [PATCH] Replace login with log in when used as a verb --- rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po | 2 +- rest_framework_jwt/serializers.py | 2 +- tests/test_serializers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po b/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po index aa26c0c3..006937a2 100644 --- a/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po +++ b/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po @@ -47,7 +47,7 @@ msgid "User account is disabled." msgstr "" #: serializers.py:76 -msgid "Unable to login with provided credentials." +msgid "Unable to log in with provided credentials." msgstr "" #: serializers.py:79 diff --git a/rest_framework_jwt/serializers.py b/rest_framework_jwt/serializers.py index 2674fcab..12b10a44 100644 --- a/rest_framework_jwt/serializers.py +++ b/rest_framework_jwt/serializers.py @@ -61,7 +61,7 @@ def validate(self, attrs): 'user': user } else: - msg = _('Unable to login with provided credentials.') + msg = _('Unable to log in with provided credentials.') raise serializers.ValidationError(msg) else: msg = _('Must include "{username_field}" and "password".') diff --git a/tests/test_serializers.py b/tests/test_serializers.py index f5231bee..2e6c7e53 100644 --- a/tests/test_serializers.py +++ b/tests/test_serializers.py @@ -64,7 +64,7 @@ def test_invalid_credentials(self): is_valid = serializer.is_valid() expected_error = { - 'non_field_errors': ['Unable to login with provided credentials.'] + 'non_field_errors': ['Unable to log in with provided credentials.'] } self.assertFalse(is_valid)