mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Lint
This commit is contained in:
parent
c9c383dfad
commit
70205cc64e
|
@ -6,8 +6,11 @@ from rest_framework import serializers
|
||||||
|
|
||||||
class AuthTokenSerializer(serializers.Serializer):
|
class AuthTokenSerializer(serializers.Serializer):
|
||||||
username = serializers.CharField(label=_("Username"))
|
username = serializers.CharField(label=_("Username"))
|
||||||
password = serializers.CharField(label=_("Password"),
|
password = serializers.CharField(
|
||||||
style={'input_type': 'password'}, trim_whitespace=False)
|
label=_("Password"),
|
||||||
|
style={'input_type': 'password'},
|
||||||
|
trim_whitespace=False
|
||||||
|
)
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
username = attrs.get('username')
|
username = attrs.get('username')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user