开发者

How do I get admin.StackedInline or admin.TabularInline like feel in my own views?

开发者 https://www.devze.com 2023-03-11 06:33 出处:网络
Consider the simple Poll example in the Django Tutorial example in Djnagoproject web site. Once you use admin.StackedInline or TabularInline, you get a nice interface which allows you create a neat Po

Consider the simple Poll example in the Django Tutorial example in Djnagoproject web site. Once you use admin.StackedInline or TabularInline, you get a nice interface which allows you create a neat Poll application.

If I need to provide same look, feel and functionality in my own custom views, what should I do. For eg: I want to let users create polls, but they don't have access to the admin section, but we can provide a view like "/create/polls/".

An开发者_运维百科y ideas, code, pointers will be helpful


Inline formsets.

0

精彩评论

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