From 94395ae71aa6c91e07df4960401615e4f8db766a Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 10 Oct 2023 20:28:16 -0500 Subject: [PATCH] Fix registration --- judge/models/profile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/judge/models/profile.py b/judge/models/profile.py index bcb6621..8647206 100644 --- a/judge/models/profile.py +++ b/judge/models/profile.py @@ -541,6 +541,8 @@ class OrganizationProfile(models.Model): @receiver([post_save], sender=User) def on_user_save(sender, instance, **kwargs): + if instance.id is None: + return profile = instance.profile profile._get_user.dirty(profile)