开发者

django admin inline formset

开发者 https://www.devze.com 2023-02-16 00:42 出处:网络
Can i use inline formset in django admin, a formset based on a custom form without a model? The ModelAdmin class has the attri开发者_开发知识库bute inlines allowing class inherited from TabularInline

Can i use inline formset in django admin, a formset based on a custom form without a model?

The ModelAdmin class has the attri开发者_开发知识库bute inlines allowing class inherited from TabularInline or StackedInline. But these classes need a model.


No, you can't. If without a model, how can the formset objects be saved to database? As we all know that the model is the essential part of django's ORM.

0

精彩评论

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