mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Add note about the new CONSTANCE_SUPERUSER_ONLY setting.
This commit is contained in:
parent
00985ed40f
commit
c2c64f7d44
2 changed files with 7 additions and 1 deletions
|
|
@ -181,6 +181,12 @@ Editing
|
|||
Fire up your ``admin`` and you should see a new app called ``Constance``
|
||||
with ``MY_SETTINGS_KEY`` in the ``Config`` pseudo model.
|
||||
|
||||
By default changing the settings via the admin is only allowed for super users.
|
||||
But in case you want to use the admin's ability to implement custom
|
||||
authorization checks, feel free to set the ``CONSTANCE_SUPERUSER_ONLY`` setting
|
||||
to ``False`` and give the users or user groups access to the
|
||||
``constance.change_config`` permission.
|
||||
|
||||
Screenshots
|
||||
-----------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ REDIS_CONNECTION = getattr(settings, 'CONSTANCE_REDIS_CONNECTION',
|
|||
DATABASE_CACHE_BACKEND = getattr(settings, 'CONSTANCE_DATABASE_CACHE_BACKEND',
|
||||
None)
|
||||
|
||||
SUPERUSER_ONLY = getattr(settings, 'CONSTANCE_ACCESS_SUPERUSER_ONLY', True)
|
||||
SUPERUSER_ONLY = getattr(settings, 'CONSTANCE_SUPERUSER_ONLY', True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue