feat: admin panel enrichment

This commit is contained in:
mohamad
2026-07-19 14:31:28 +03:30
parent d8d7819eca
commit 1042fba121
77 changed files with 4616 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
from django.dispatch import receiver
from allauth.account.signals import user_signed_up
from .models import ClientProfile
@receiver(user_signed_up)
def ensure_client_profile(sender, request, user, **kwargs):
ClientProfile.objects.get_or_create(user=user)