diff options
author | anoop | 2010-03-08 20:06:40 +0530 |
---|---|---|
committer | anoop | 2010-03-08 20:06:40 +0530 |
commit | 2d82dbd4435dac4b4c7a17d386998bd108344ebf (patch) | |
tree | 3a027658516557359fbfc8dc7b7feff8a86b367b | |
parent | f610f5da45e82a0e590690cd721fb352b83d3c7a (diff) | |
download | pytask-2d82dbd4435dac4b4c7a17d386998bd108344ebf.tar.gz pytask-2d82dbd4435dac4b4c7a17d386998bd108344ebf.tar.bz2 pytask-2d82dbd4435dac4b4c7a17d386998bd108344ebf.zip |
send/create notification when a new account is created.
-rw-r--r-- | taskapp/forms/user.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |