Django and fieldsets on ModelForm

前端 未结 5 1446
失恋的感觉
失恋的感觉 2020-12-04 10:34

I know you can specify fieldsets in django for Admin helpers. However, I cannot find anything useful for ModelForms. Just some patches which I cannot use. Am I missing somet

5条回答
  •  余生分开走
    2020-12-04 10:40

    Daniel Greenfelds django-uni-form solves this with a the Layout helper class. I'm trying it out right now and it looks pretty clean to me.

    Uniform helpers can use layout objects. A layout can consist of fieldsets, rows, columns, HTML and fields.

    I originally picked Django-uni-form because it complies with section 508.

提交回复
热议问题