Document the new post_clean signal

This commit is contained in:
jeremystretch 2021-06-09 11:39:44 -04:00
parent 2763ed6f3e
commit 1d2a9b07e5
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Signals
In addition to [Django's built-in signals](https://docs.djangoproject.com/en/stable/topics/signals/), NetBox defines some of its own, listed below.
## post_clean
This signal is sent by models which inherit from `CustomValidationMixin` at the end of their `clean()` method.
### Receivers
* `extras.signals.run_custom_validators()`

View File

@ -90,6 +90,7 @@ nav:
- Style Guide: 'development/style-guide.md' - Style Guide: 'development/style-guide.md'
- Models: 'development/models.md' - Models: 'development/models.md'
- Extending Models: 'development/extending-models.md' - Extending Models: 'development/extending-models.md'
- Signals: 'development/signals.md'
- Application Registry: 'development/application-registry.md' - Application Registry: 'development/application-registry.md'
- User Preferences: 'development/user-preferences.md' - User Preferences: 'development/user-preferences.md'
- Release Checklist: 'development/release-checklist.md' - Release Checklist: 'development/release-checklist.md'