From 83cdf0abe172133aca95524ef4cc8bfd484a01d6 Mon Sep 17 00:00:00 2001 From: sandronadiradze Date: Mon, 14 Oct 2024 06:32:37 +0400 Subject: [PATCH] chore: add registration_complete field when creating user with social providers --- apis/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apis/serializers.py b/apis/serializers.py index b43cbff..3f61a74 100644 --- a/apis/serializers.py +++ b/apis/serializers.py @@ -1090,6 +1090,7 @@ def _handle_new_user_signup(self, user_info): user_type=self.validated_data["user_type"], user_profile_type=CustomUser.UserProfileType.INDIVIDUAL, is_verified=True, + registration_complete=True, nickname=nickname, avatar=self.validated_data["avatar"], ) @@ -1196,6 +1197,7 @@ def _handle_new_user_signup(self, user_info): user_type=self.validated_data["user_type"], user_profile_type=CustomUser.UserProfileType.INDIVIDUAL, is_verified=True, + registration_complete=True, nickname=nickname, avatar=self.validated_data["avatar"], )