开发者

django admin inline formset

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜