From: Scott Baker Date: Wed, 28 Jan 2015 07:07:51 +0000 (-0800) Subject: make sure users created through tenant view are not admins X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=e61496bbe4e377b71e61bb4fb36b706d51574ced make sure users created through tenant view are not admins --- diff --git a/planetstack/core/dashboard/views/tenant.py b/planetstack/core/dashboard/views/tenant.py index 762409e..a4b8e99 100644 --- a/planetstack/core/dashboard/views/tenant.py +++ b/planetstack/core/dashboard/views/tenant.py @@ -17,7 +17,8 @@ class RequestAccessView(View): email=BaseUserManager.normalize_email(email), firstname=firstname, lastname=lastname, - is_active=False + is_active=False, + is_admin=False ) user.save() user.site=Site.objects.get(name=site)