Custom validation logic goes where? #6865
-
If I understand the custom validators right the purpose is to associate custom validators in the configuration file. But if I want to write custom validation logic then where should that go? |
Beta Was this translation helpful? Give feedback.
Answered by
jeremystretch
Aug 2, 2021
Replies: 1 comment 4 replies
-
You can define custom validator classes in a separate file, but they must be imported into |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
bluikko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can define custom validator classes in a separate file, but they must be imported into
configuration.py
so you can setCUSTOM_VALIDATORS
: https://netbox.readthedocs.io/en/feature/customization/custom-validation/