From 2d82dbd4435dac4b4c7a17d386998bd108344ebf Mon Sep 17 00:00:00 2001 From: anoop Date: Mon, 8 Mar 2010 20:06:40 +0530 Subject: send/create notification when a new account is created. --- taskapp/forms/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taskapp/forms/user.py b/taskapp/forms/user.py index fe81536..5a8acaa 100644 --- a/taskapp/forms/user.py +++ b/taskapp/forms/user.py @@ -9,6 +9,7 @@ from django import forms 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 @@ class RegistrationFormCustom(RegistrationFormUniqueEmail): 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): -- cgit