forms.py 文件源码

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

项目:2017.djangocon.eu 作者: djangocon 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super(WorkshopSubmissionForm, self).__init__(*args, **kwargs)
        self.fields['author'].label = _('Your name')
        self.fields['email'].label = _('Your email')
        self.fields['author_bio'].label = _('Tell us about yourself')
        self.fields['proposal_title'].label = _('Your proposal\'s title')
        self.fields['proposal_abstract'].label = _('Abstract of your proposal')
        self.fields['proposal_audience'].label = _(
            'What\'s the intended audience of your proposal?')
        self.fields['workshop_duration'].lable = _('How long is the workshop?')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号