From d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 14:17:27 -0600 Subject: Initial commit (users and statuses) --- core/forms.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 core/forms.py (limited to 'core/forms.py') 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")) -- cgit v1.2.3