We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ed135 commit 7d5e794Copy full SHA for 7d5e794
django_forms_bootstrap/templatetags/bootstrap_tags.py
@@ -16,7 +16,7 @@
16
def _preprocess_fields(form):
17
for field in form.fields:
18
name = form.fields[field].widget.__class__.__name__.lower()
19
- if not name.startswith("radio") and not name.startswith("checkbox"):
+ if not name.startswith("radio") and not name.startswith("checkbox") and not name.endswith('fileinput'):
20
try:
21
form.fields[field].widget.attrs["class"] += " form-control"
22
except KeyError:
0 commit comments