Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit e3524ad

Browse files
authored
Merge pull request #295 from rriehle/master
Replace login with log in when used as a verb
2 parents f128b3b + 7080014 commit e3524ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msgid "User account is disabled."
4747
msgstr ""
4848

4949
#: serializers.py:76
50-
msgid "Unable to login with provided credentials."
50+
msgid "Unable to log in with provided credentials."
5151
msgstr ""
5252

5353
#: serializers.py:79

rest_framework_jwt/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def validate(self, attrs):
6161
'user': user
6262
}
6363
else:
64-
msg = _('Unable to login with provided credentials.')
64+
msg = _('Unable to log in with provided credentials.')
6565
raise serializers.ValidationError(msg)
6666
else:
6767
msg = _('Must include "{username_field}" and "password".')

tests/test_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_invalid_credentials(self):
6464
is_valid = serializer.is_valid()
6565

6666
expected_error = {
67-
'non_field_errors': ['Unable to login with provided credentials.']
67+
'non_field_errors': ['Unable to log in with provided credentials.']
6868
}
6969

7070
self.assertFalse(is_valid)

0 commit comments

Comments
 (0)