Move CUSTOM_VALIDATORS to dynamic configuration

This commit is contained in:
jeremystretch
2021-11-08 15:22:29 -05:00
parent 6fa417c51c
commit cb549e15a3
7 changed files with 38 additions and 33 deletions

View File

@@ -49,22 +49,6 @@ CORS_ORIGIN_WHITELIST = [
---
## CUSTOM_VALIDATORS
This is a mapping of models to [custom validators](../customization/custom-validation.md) that have been defined locally to enforce custom validation logic. An example is provided below:
```python
CUSTOM_VALIDATORS = {
'dcim.site': (
Validator1,
Validator2,
Validator3
)
}
```
---
## DEBUG
Default: False