X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/32714afe3043fe7223189f6a08932b186885b029..c1a4dfda807ca08de7d3370fc421abc39d411264:/forum_modules/localauth/views.py diff --git a/forum_modules/localauth/views.py b/forum_modules/localauth/views.py index 6416fee..e1daff3 100644 --- a/forum_modules/localauth/views.py +++ b/forum_modules/localauth/views.py @@ -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()