diff options
author | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
---|---|---|
committer | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
commit | d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch) | |
tree | dd356a933b8179a22e5da6e938acd96a175ac0d6 /core/forms.py | |
download | takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2 takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip |
Initial commit (users and statuses)
Diffstat (limited to 'core/forms.py')
-rw-r--r-- | core/forms.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/forms.py b/core/forms.py new file mode 100644 index 0000000..8a4801d --- /dev/null +++ b/core/forms.py @@ -0,0 +1,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")) |