]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/localauth/views.py
fixes problem with always showing alert dialog in chrome. Still working out non...
[osqa.git] / forum_modules / localauth / views.py
index 6416feea555affde9901ebddad2dce921ab7ff31..e1daff3e7b87b8bb551a36207ed21743ec869596 100644 (file)
@@ -4,7 +4,7 @@ from django.template import RequestContext
 from django.utils.translation import ugettext as _
 
 from forms import ClassicRegisterForm
-from forum.authentication.forms import SimpleEmailSubscribeForm
+from forum.forms import SimpleEmailSubscribeForm
 from forum.views.auth import login_and_forward
 from forum.actions import UserJoinsAction
 
@@ -23,6 +23,7 @@ def register(request):
 
             if User.objects.all().count() == 0:
                 user_.is_superuser = True
+                user_.is_staff = True
 
             user_.save()
             UserJoinsAction(user=user_, ip=request.META['REMOTE_ADDR']).save()