Adds update_user method in auth.py to set admin permissions for
new accounts and pre-existing accounts of admin users. It also
clears the permissions when a user is removed from the admin list.
A config.yml is added to get the admin list in auth.py and ADMINS
in settings/base.py.
The ADMINS can be verified by checking its value in the Django Debug
Toolbar's Settings panel.
This commit adds the following:
Adds
update_usermethod in auth.py to set admin permissions fornew accounts and pre-existing accounts of admin users. It also
clears the permissions when a user is removed from the admin list.
A config.yml is added to get the admin list in auth.py and
ADMINSin settings/base.py.
The
ADMINScan be verified by checking its value in the Django DebugToolbar's Settings panel.