diff --git a/README.rst b/README.rst index 7c3780b..433d888 100644 --- a/README.rst +++ b/README.rst @@ -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 ----------- diff --git a/constance/settings.py b/constance/settings.py index 86a6354..5062199 100644 --- a/constance/settings.py +++ b/constance/settings.py @@ -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)