diff --git a/django_forms_bootstrap/templatetags/bootstrap_tags.py b/django_forms_bootstrap/templatetags/bootstrap_tags.py index d4325d3..7b0cae9 100644 --- a/django_forms_bootstrap/templatetags/bootstrap_tags.py +++ b/django_forms_bootstrap/templatetags/bootstrap_tags.py @@ -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: