Init
This commit is contained in:
commit
a5b7dfc60c
100 changed files with 21307 additions and 0 deletions
9
account/signals.py
Normal file
9
account/signals.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
def create_profile(sender, instance, signal, created, **kwargs):
|
||||
from account.models import UserProfile
|
||||
|
||||
if created:
|
||||
UserProfile(user=instance).save()
|
||||
|
||||
def delete_profile(sender, instance, signal, **kwargs):
|
||||
from account.models import UserProfile
|
||||
UserProfile(user=instance).delete()
|
||||
Loading…
Add table
Add a link
Reference in a new issue