How do I use Django's MultiWidget?

前端 未结 2 1231
臣服心动
臣服心动 2020-12-07 09:28

The documentation is a bit lacking with respect to this feature.

from django import forms

class TwoInputWidget(forms.MultiWidget):
    \"\"\"An example widg         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 09:43

    Read through this blog entry and the associated Django snippet. Hope this gives you some ideas.

提交回复
热议问题