From 40db4e14b0f1663f2833839b71769811232960cb Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 31 May 2020 16:05:46 +0300 Subject: [PATCH] Signup: rename the UserQuerySerializer to Signup. --- django_etesync/serializers.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/django_etesync/serializers.py b/django_etesync/serializers.py index 3b50c36..f117b31 100644 --- a/django_etesync/serializers.py +++ b/django_etesync/serializers.py @@ -339,12 +339,6 @@ class UserSerializer(serializers.ModelSerializer): fields = (User.USERNAME_FIELD, User.EMAIL_FIELD, 'pubkey', 'encryptedSeckey') -class UserQuerySerializer(serializers.ModelSerializer): - class Meta: - model = User - fields = (User.USERNAME_FIELD, User.EMAIL_FIELD) - - class UserInfoPubkeySerializer(serializers.ModelSerializer): pubkey = BinaryBase64Field() @@ -353,8 +347,14 @@ class UserInfoPubkeySerializer(serializers.ModelSerializer): fields = ('pubkey', ) +class UserSignupSerializer(serializers.ModelSerializer): + class Meta: + model = User + fields = (User.USERNAME_FIELD, User.EMAIL_FIELD) + + class AuthenticationSignupSerializer(serializers.Serializer): - user = UserQuerySerializer(many=False) + user = UserSignupSerializer(many=False) salt = BinaryBase64Field() loginPubkey = BinaryBase64Field() pubkey = BinaryBase64Field()