You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out if it's possible to set the field_class when using as_crispy_field, for instance when calling the following: {{ form.field|as_crispy_field:"tailwind" }}
as_crispy_field is a django filter, so according to django documentation it should not be possible to pass multi arguments, which only work with template tag.
As the method as_crispy_field has those 2 arguments in the function definition, maybe I'm missing something.
Any pointer would be appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to figure out if it's possible to set the
field_class
when usingas_crispy_field
, for instance when calling the following:{{ form.field|as_crispy_field:"tailwind" }}
Reference to as_crispy_field in the code:
crispy-tailwind/crispy_tailwind/templatetags/tailwind_filters.py
Line 92 in 91c3547
as_crispy_field
is a django filter, so according to django documentation it should not be possible to pass multi arguments, which only work with template tag.As the method
as_crispy_field
has those 2 arguments in the function definition, maybe I'm missing something.Any pointer would be appreciated.
The text was updated successfully, but these errors were encountered: