From e653db155cdb671d6ab1c52492fd37b9f80cb805 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 10 Mar 2011 18:06:50 +0800 Subject: models: use User.post_save signal to create UserProfile objects Rather than relying on the registration app's callback mechanism to create the UserProfile object, use the post_save signal on auth.User. This means that the UserProfile will be created regardless of how the User was created. Signed-off-by: Jeremy Kerr --- apps/urls.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/urls.py') diff --git a/apps/urls.py b/apps/urls.py index 5c4ac57..14f0545 100644 --- a/apps/urls.py +++ b/apps/urls.py @@ -23,7 +23,6 @@ from patchwork.admin import admin_site from registration.views import register from patchwork.forms import RegistrationForm -from patchwork.utils import userprofile_register_callback urlpatterns = patterns('', # Example: @@ -31,9 +30,7 @@ urlpatterns = patterns('', # override the default registration form url(r'^accounts/register/$', - register, - {'form_class': RegistrationForm, - 'profile_callback': userprofile_register_callback}, + register, {'form_class': RegistrationForm}, name='registration_register'), (r'^accounts/', include('registration.urls')), -- cgit v1.2.3