开发者

Django - Admin - Mandatory Inlines

开发者 https://www.devze.com 2023-02-02 04:18 出处:网络
Is it possible configure Mandatory Inlines in Django Admin Site? For example, Student page has Address as a i开发者_StackOverflownline. Each Student should have at least one address selected from Inl

Is it possible configure Mandatory Inlines in Django Admin Site?

For example, Student page has Address as a i开发者_StackOverflownline. Each Student should have at least one address selected from Inline.


Inline Form Validation in Django


From Django 1.7 you can use min_num.

0

精彩评论

暂无评论...
验证码 换一张
取 消