X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/api/serializers.py?ds=sidebyside 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'})