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

Replace login with log in when used as a verb #295

Merged
merged 1 commit into from
Dec 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_jwt/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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".')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down