forms.py 文件源码

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

项目:xwingoverlayer 作者: sheepeatingtaz 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.helper = FormHelper()

        self.helper.form_id = 'main_form'
        self.helper.form_class = 'form-horizontal'
        self.helper.label_class = 'col-lg-3'
        self.helper.field_class = 'col-lg-8'

        self.helper.layout = Layout(
            Field(
                'squad_one',
                css_class="typeahead",
            ),
            Field(
                'squad_two',
                css_class="typeahead",
            ),
            'start_time',
            'match_minutes',
            FormActions(
                Submit('save', 'Create Match'),
            )
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号