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
{{ name }}{% if value|stringformat:"s" != "True" or value != 1 %}="{{ value }}{% if name == "class" %} {{ extra_classes }}{% endif %}"
Then what about {% widget %} accepting options such as using and with? It would make it easy to provide custom context data and to use alternative templates for widgets.
Another option would be to update field's attrs dictionary (or a copy of it)... but, right now, I do not have a nice idea about how to do it in a simple an safe way.
I tried creating a Bootstrap layout based on the one in the docs with a modified version of attrs.html but my layout doesn't seem to be ignoring that template for some reason. Is there a formconfig that I need to use to get it to reference my attrs.html rather than the standard one?
I've also tried adding the CSS class via the with option for the formfield tag but that doesn't seem to be passed through either.
This issue was brought up recently by #86 and is quite a basic use case. So we need to come up with:
The text was updated successfully, but these errors were encountered: