This commit is contained in:
baccenfutter 2013-10-19 00:47:24 +02:00
commit a5b7dfc60c
100 changed files with 21307 additions and 0 deletions

9
account/signals.py Normal file
View 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()