作者:劈腿年代shui还相信真爱 | 来源:互联网 | 2023-10-10 16:41
Howdoyoulimittheinlineformsetindjangoadmin?Problem:IhaveatableAwith1tonrelations
How do you limit the inline formset in django admin? Problem: I have a table A with 1 to n relationship with B. Table A should have at least one Table B item and a max of 5 Table B items.
你如何限制django admin中的内联formset?问题:我有一张表A与B有1到n的关系。表A应该至少有一个表B项和最多5个表B项。
Thanks
谢谢
1 个解决方案