from django import template
from django.forms.widgets import FileInput
register = template.Library()


@register.filter
def is_input_file(field):
    widget = field.field.widget
    return isinstance(widget, FileInput)

05fe8561a864aba68b4aece03223ff2db5d53063
<mask token>

<mask token>


@register.filter
def is_input_file(field):
    widget = field.field.widget
    return isinstance(widget, FileInput)

<mask token>
register = template.Library()


@register.filter
def is_input_file(field):
    widget = field.field.widget
    return isinstance(widget, FileInput)

from django import template
from django.forms.widgets import FileInput
register = template.Library()


@register.filter
def is_input_file(field):
    widget = field.field.widget
    return isinstance(widget, FileInput)
