﻿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
21744	Dinamic creation of forms.ImageField	jenyapri@…	nobody	"

I have a problem with the forms.ImagaField. The problem is , that I want to set initial value to this fieled dynamically , and then  widget ClearableFileInput will display the ""Current link"" and checkbox.I read somewhere, that i have to pass ""dictionary File"" with attribute ""url"", and then the widget will know to display it. But i don't know , how pass it properly.

        

 if attr.type == ""Img"":

             self.fields [title] = forms.ImageField (required = bool (required))

            Where here, i have to assign an initial value.
            Thank you.
"	Uncategorized	closed	Forms	1.6	Normal	invalid	django-forms		Unreviewed	0	0	0	0	0	0
