﻿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
34530	Remove docs suggestion to use lambda for models.FileField(storage=...)	Ran Benita	nobody	"The file storage docs https://docs.djangoproject.com/en/4.2/topics/files/#using-a-callable currently suggest the following:

{{{
upload = models.FileField(storage=lambda: storages[""custom_storage""])
}}}

The migrations serializer however doesn't handle lambdas. So I think this paragraph should just be removed (the previous paragraph is good enough, using a named function).

Side note: it might have been nice to allow `FileField(storage=""foo"")` which will lazily take `storages[""foo""]` and thus avoid the callable annoyance? But that's unrelated to this ticket."	Cleanup/optimization	closed	Documentation	4.2	Normal	fixed			Ready for checkin	1	0	0	0	1	0
