summaryrefslogtreecommitdiffstats
path: root/apps/urls.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2011-03-10 18:06:50 +0800
committerJeremy Kerr <jk@ozlabs.org>2011-03-30 11:35:24 +0800
commite653db155cdb671d6ab1c52492fd37b9f80cb805 (patch)
tree3d244db8e30f5b5128eee80cec12f117b0ec73d4 /apps/urls.py
parenta16f6f8afd0e9487cb3d9b8041f24c7496330086 (diff)
downloadpatchwork-e653db155cdb671d6ab1c52492fd37b9f80cb805.tar.bz2
patchwork-e653db155cdb671d6ab1c52492fd37b9f80cb805.tar.xz
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 <jk@ozlabs.org>
Diffstat (limited to 'apps/urls.py')
-rw-r--r--apps/urls.py5
1 files changed, 1 insertions, 4 deletions
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')),