def __init__(self, *args, **kwargs):
device = kwargs.pop('device')
self.device = device
super().__init__(*args, **kwargs)
self.helper = FormHelper()
submit = Submit('submit', _('Log in'), css_class='pull-right')
self.helper.layout = Layout(
Field('response', autofocus='autofocus'),
submit)
评论列表
文章目录