mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +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):
|
||||
username = serializers.CharField(label=_("Username"))
|
||||
password = serializers.CharField(label=_("Password"),
|
||||
style={'input_type': 'password'}, trim_whitespace=False)
|
||||
password = serializers.CharField(
|
||||
label=_("Password"),
|
||||
style={'input_type': 'password'},
|
||||
trim_whitespace=False
|
||||
)
|
||||
|
||||
def validate(self, attrs):
|
||||
username = attrs.get('username')
|
||||
|
|
Loading…
Reference in New Issue
Block a user