Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_forms_bootstrap/templatetags/bootstrap_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def _preprocess_fields(form):
for field in form.fields:
name = form.fields[field].widget.__class__.__name__.lower()
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'):
try:
form.fields[field].widget.attrs["class"] += " form-control"
except KeyError:
Expand Down