From 3fcea20d68f7a820386f1e6c95ce8528a760c4f4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 22 Dec 2020 12:46:42 +0200 Subject: [PATCH] Serializers: fully clean an object on signup. --- django_etebase/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etebase/serializers.py b/django_etebase/serializers.py index eebae91..9408b78 100644 --- a/django_etebase/serializers.py +++ b/django_etebase/serializers.py @@ -518,7 +518,7 @@ class AuthenticationSignupSerializer(BetterErrorsMixin, serializers.Serializer): # Create the user and save the casing the user chose as the first name try: instance = create_user(**user_data, password=None, first_name=user_data["username"], view=view) - instance.clean_fields() + instance.full_clean() except EtebaseValidationError as e: raise e except django_exceptions.ValidationError as e: