From 2412c295de6a60393573ed65160fcf8a1f793096 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 26 May 2020 13:17:35 +0300 Subject: [PATCH] Signup: fix bug making signup not to work. --- django_etesync/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etesync/serializers.py b/django_etesync/serializers.py index 29068fa..650b981 100644 --- a/django_etesync/serializers.py +++ b/django_etesync/serializers.py @@ -357,7 +357,7 @@ class AuthenticationSignupSerializer(serializers.Serializer): pubkey = validated_data.pop('pubkey') with transaction.atomic(): - instance = User.objects.get_or_create(**user_data) + instance, _ = User.objects.get_or_create(**user_data) if hasattr(instance, 'userinfo'): raise serializers.ValidationError('User already exists')