Skip to content

Commit

Permalink
Prevent uploading files with unmatching accept attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 8, 2024
1 parent 1f04b95 commit f2a17dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion formset/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from django.db.models.query_utils import Q
from django.forms.widgets import FILE_INPUT_CONTRADICTION
from django.forms.models import ModelChoiceIterator, ModelChoiceIteratorValue
from django.forms.widgets import DateTimeBaseInput, FileInput, Select, SelectMultiple, TextInput, Widget
from django.forms.widgets import (DateTimeBaseInput, FileInput, FILE_INPUT_CONTRADICTION, Select, SelectMultiple,
TextInput, Widget)
from django.template.loader import get_template
from django.utils.encoding import uri_to_iri
from django.utils.functional import cached_property
Expand Down

0 comments on commit f2a17dd

Please sign in to comment.