# HG changeset patch # User anoop # Date 1268059000 -19800 # Node ID a01078a9bbcfe739356ce9121aa6d36a956060f6 # Parent 9f6a6eaf5df3936d17ded5ec98bc75bb4596f7c2 send/create notification when a new account is created. diff -r 9f6a6eaf5df3 -r a01078a9bbcf taskapp/forms/user.py --- a/taskapp/forms/user.py Mon Mar 08 19:49:25 2010 +0530 +++ b/taskapp/forms/user.py Mon Mar 08 20:06:40 2010 +0530 @@ -9,6 +9,7 @@ from pytask.taskapp.models import GENDER_CHOICES, Profile from registration.forms import RegistrationFormUniqueEmail from registration.models import RegistrationProfile +from pytask.taskapp.utilities.notification import create_notification class UserProfileEditForm(forms.ModelForm): """Form used to edit the profile of a user""" @@ -51,6 +52,8 @@ new_profile = Profile(user=new_user,dob=self.cleaned_data['dob'],gender=self.cleaned_data['gender']) new_profile.save() + create_notification('NU',new_user) + return new_user def UserChoiceForm(choices, instance=None):