cbmi/account/signals.py

9 lines
306 B
Python
Raw Normal View History

2013-10-19 00:47:24 +02:00
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()