B
B
Boldy2015-01-05 19:44:13
Django
Boldy, 2015-01-05 19:44:13

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

1 answer(s)
Y
Yuri Shikanov, 2015-01-05
@Boldy

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 question

Ask a Question

731 491 924 answers to any question