﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27383	Regression: `FileField(default=None)` now never upload a file through a ModelForm	Maxime Lorant	nobody	"We had in our code the following line (don't ask why, I don't know):

{{{
class SomeModel(models.Model):
     foo = ...
     bar = ...
     file = models.FileField(null=True, blank=True, default=None)


class SomeModelForm(forms.ModelForm):
     class Meta:
          fields = ('foo', 'bar', 'file', )
}}}

It was working until Django 1.9.x, but switching to Django 1.10, submission of files through a ModelForm stopped working. I found a solution by removing the useless `default=None`. Even though its usefulness can be questioned, it looks like it is a regression not documented in the release notes.

Should we bother adding it or change back the behaviour?"	Bug	closed	File uploads/storage	1.10	Normal	worksforme			Unreviewed	0	0	0	0	0	0
