Revision 3abf6c78 snf-astakos-app/astakos/im/management/commands/user_add.py
b/snf-astakos-app/astakos/im/management/commands/user_add.py | ||
---|---|---|
103 | 103 |
if options['active']: |
104 | 104 |
user.is_active = True |
105 | 105 |
if options['admin']: |
106 |
user.is_admin = True
|
|
106 |
user.is_superuser = True
|
|
107 | 107 |
|
108 | 108 |
try: |
109 | 109 |
user.save() |
Also available in: Unified diff