Update configuration.rst

add docs for custom permission for standard registration view
This commit is contained in:
Nazariy Mandebura 2019-02-18 14:39:13 +01:00 committed by GitHub
parent 5c556cd09a
commit 52f2ae1772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
]