AuthTokenSerializer - properly render password field

This commit is contained in:
mdoglio 2015-03-22 11:57:49 +00:00
parent 22569e8202
commit fde02ae6eb

View File

@ -6,7 +6,7 @@ from rest_framework import exceptions, serializers
class AuthTokenSerializer(serializers.Serializer):
username = serializers.CharField()
password = serializers.CharField()
password = serializers.CharField(style={'input_type': 'password'})
def validate(self, attrs):
username = attrs.get('username')