commit | bb2fb7edca0f1170592823704fef1637181db65d | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Jan 27 23:07:51 2015 -0800 |
committer | Scott Baker <smbaker@gmail.com> | Tue Jan 27 23:07:51 2015 -0800 |
tree | 79798fe461fce7037443ef87e8f6042d2bc496e7 | |
parent | ac543a7cb91a5bcfaa5414c01a47754f7fbb9a6e [diff] |
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 @@ 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)