X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b17486a9270334855c3b908b8250e3a020803875..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/api/serializers.py diff --git a/src/api/serializers.py b/src/api/serializers.py index e0bf0eeee..dae587c84 100644 --- a/src/api/serializers.py +++ b/src/api/serializers.py @@ -25,3 +25,8 @@ class BookUserDataSerializer(serializers.ModelSerializer): class Meta: model = BookUserData fields = ['state'] + + +class LoginSerializer(serializers.Serializer): + username = serializers.CharField() + password = serializers.CharField(style={'input_type': 'password'})