I have model with a field validator
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator class MyModel(mode
From django documentation:
Note that validators will not be run automatically when you save a model, but if you are using a ModelForm, it will run your validators on any fields that are included in your form.
https://docs.djangoproject.com/en/3.1/ref/validators/#how-validators-are-run