From 52f2ae17721736dee2de290a3e72ce4324e19a4e Mon Sep 17 00:00:00 2001 From: Nazariy Mandebura Date: Mon, 18 Feb 2019 14:39:13 +0100 Subject: [PATCH] Update configuration.rst add docs for custom permission for standard registration view --- docs/configuration.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/configuration.rst b/docs/configuration.rst index 59b301f..99c63f4 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -51,3 +51,13 @@ Configuration - **OLD_PASSWORD_FIELD_ENABLED** - set it to True if you want to have old password verification on password change enpoint (default: False) - **LOGOUT_ON_PASSWORD_CHANGE** - set to False if you want to keep the current user logged in after a password change + +- **REST_AUTH_REGISTER_PERMISSION_CLASSES** - set to add permissions to the registration view + + Example configuration with dry-permissions (https://github.com/dbkaplan/dry-rest-permissions): + + .. code-block:: python + + REST_AUTH_REGISTER_PERMISSION_CLASSES = [ + 'dry_rest_permissions.generics.DRYPermissions' + ]