We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c383d commit 70205ccCopy full SHA for 70205cc
rest_framework/authtoken/serializers.py
@@ -6,8 +6,11 @@
6
7
class AuthTokenSerializer(serializers.Serializer):
8
username = serializers.CharField(label=_("Username"))
9
- password = serializers.CharField(label=_("Password"),
10
- style={'input_type': 'password'}, trim_whitespace=False)
+ password = serializers.CharField(
+ label=_("Password"),
11
+ style={'input_type': 'password'},
12
+ trim_whitespace=False
13
+ )
14
15
def validate(self, attrs):
16
username = attrs.get('username')
0 commit comments