Answer the question
In order to leave comments, you need to log in
How to do inline validation in django?
There is a model with field foo and inline used in the model form bar.
How to make it so that when editing an inline, a check is performed: if foo > 42 - do nothing, but warn the user that foo should be <=42?
Answer the question
In order to leave comments, you need to log in
The inline admin panel has the form property, which means you can make a form and write the necessary validation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question