﻿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
30777	File isn't treated correctly, when in user-defined field.	Simonas0	nobody	"When `models.FileField` is in `models.Model`, everything works as expected.
When `models.FileField` is in `models.Field` which is in `models.Model`, when saving, `ProgrammingError` `can't adapt type 'TemporaryUploadedFile'` is raised.
That happens, because `FileField.save_form_data()` makes `FileField` to hold `FieldFile`, but `models.Field` makes its `FileField` to hold `TemporaryUploadedFile`.
I've prepared repo with minimal setup to reproduce bug: https://github.com/Simonas0/django_playground"	Bug	closed	File uploads/storage	dev	Normal	invalid	custom field, composite field, user-defined field, file		Unreviewed	0	0	0	0	0	0
