def __init__(self, *args, **kwargs):
super(CustPswChangeForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_action = reverse('password_change')
self.helper.form_class = 'form-horizontal'
self.helper.label_class = 'col-md-3'
self.helper.field_class = 'col-md-9'
self.helper.error_text_inline = False
self.helper.add_input(Submit('submit_button', _(u'Confirm')))
self.helper.add_input(Button('cancel_button', _(u'Cancel'), css_class='btn-default'))
# def custom_activation_complete(request):
# print 'custom_activation_complete'
# return render(request, 'registration/activation_complete.html', {})
评论列表
文章目录