Invalidate registrations, fix profile creation
This commit is contained in:
parent
f10497bac3
commit
b1cd46bf7d
8 changed files with 121 additions and 21 deletions
|
|
@ -10,7 +10,7 @@ def save_user_profile(instance, created, raw, **_kwargs):
|
|||
# When provisionning data, do not try to autocreate
|
||||
return
|
||||
|
||||
if created:
|
||||
if created and instance.is_active:
|
||||
from .models import Profile
|
||||
Profile.objects.get_or_create(user=instance)
|
||||
instance.profile.save()
|
||||
instance.profile.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue