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

Commit 9a4345d

Browse files
committed
Dropped pointless substitution of one literal string into another
1 parent f3b1882 commit 9a4345d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rest_framework_jwt/serializers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ def validate(self, attrs):
6868
msg = 'Unable to login with provided credentials.'
6969
raise serializers.ValidationError(msg)
7070
else:
71-
msg = 'Must include "{0}" and "{1}"'.format(
72-
self.username_field,
73-
'password'
74-
)
71+
msg = 'Must include "{0}" and "password"'.format(
72+
self.username_field)
7573
raise serializers.ValidationError(msg)
7674

7775

0 commit comments

Comments
 (0)