Closed patrickcuagan closed 1 year ago
@patrickcuagan What version of tbxforms
are you using?
Using the latest v1.0.16 I can create a button using your spec just fine (which is also present in wagtail-kit).
Thanks for this @patrickcuagan - another report for this came in this week too.
The good news is that the latest release (1.1.0
) seems to have fixed it.
Description
When using
Button.primary
as a submit button, anAttributeError
is raised:*** AttributeError: 'Button' object has no attribute 'input_type'
Cause
This is caused by instantiating a button with the folowing:
Solution
I've went with using
Submit
fromcrispy_forms.layout
as a substitute forButton.primary
.