Fix FilePathField required argument by radekwlsk · Pull Request #8805 · encode/django-rest-framework (original) (raw)
@auvipy Also I wonder if setting allow_blank=False
together with required=False
should remove ("", "---------")
from path choices. As currently django's FilePathField
will add it whenever required=False
and that will make ""
a valid choice and skip allow_blank=False
.
Not sure of the expected behaviour though, as it is based on ChoiceField
and that does not support allow_blank
, right?