forms.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:confrontiv 作者: correctiv 项目源码 文件源码
def __init__(self, *args, **kwargs):
        self.object = kwargs.pop('instance')

        super(InquiryResponseMixin, self).__init__(*args, **kwargs)

        self.helper = FormHelper()
        self.helper.form_class = 'form-horizontal'
        self.helper.label_class = 'col-lg-2'
        self.helper.field_class = 'col-lg-8'

        layout_elements = list(self.fields.keys())

        layout = layout_elements + [
            StrictButton(_(u'Send your response'),
                css_class='btn-success btn-lg', type='submit')
        ]
        self.helper.layout = Layout(*layout)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号