]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/utils.py
Use django-registration infrastructure
[patchwork] / apps / patchwork / utils.py
index cecf51282f38aa83d6d7b61f03468dd129b103cd..dfe1c92fe3c7c6895f46cdca47e9f2c24b4fed4a 100644 (file)
@@ -19,7 +19,7 @@
 
 
 from patchwork.forms import MultiplePatchForm
-from patchwork.models import Bundle, Project, State
+from patchwork.models import Bundle, Project, State, UserProfile
 from django.conf import settings
 from django.shortcuts import render_to_response, get_object_or_404
 
@@ -191,3 +191,8 @@ def set_patches(user, project, action, data, patches, context):
         context.add_message(str)
 
     return (errors, form)
+
+def userprofile_register_callback(user):
+    profile = UserProfile(user = user)
+    profile.save()
+