summaryrefslogtreecommitdiffstats
path: root/core/forms.py
blob: 8a4801d6c16a3c23f6ce2e53a298d8af17b44afa (plain)
1
2
3
4
5
6
7
8
9
10
11
from crispy_forms.helper import FormHelper as BaseFormHelper
from crispy_forms.layout import Submit


class FormHelper(BaseFormHelper):

    submit_text = "Submit"

    def __init__(self, form=None, submit_text=None):
        super().__init__(form)
        self.add_input(Submit("submit", submit_text or "Submit"))