]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/localauth/views.py
Sor order was not working.
[osqa.git] / forum_modules / localauth / views.py
index f0b4438a3fafa6d2939e5404986de9b18f818492..3767dae3fc84d40f2b57693bf86fd6ac68b1eb00 100644 (file)
@@ -6,6 +6,7 @@ from django.utils.translation import ugettext as _
 from forms import ClassicRegisterForm
 from forum.authentication.forms import SimpleEmailSubscribeForm
 from forum.views.auth import login_and_forward, send_validation_email
+from forum.actions import UserJoinsAction
 
 def register(request):
     if request.method == 'POST':
@@ -24,6 +25,7 @@ def register(request):
                 user_.is_superuser = True
 
             user_.save()
+            UserJoinsAction(user=user_, ip=request.META['REMOTE_ADDR']).save()
             
             send_validation_email(user_)
             if email_feeds_form.cleaned_data['subscribe'] == 'n':