Update on a ModelChoiceField using Models Forms

19 צפיות
מעבר להודעה הראשונה שלא נקראה

Tatiana Mesa

לא נקראה,
29 בינו׳ 2020, 15:32:4529.1.2020
עד django...@googlegroups.com,django-users...@googlegroups.com
Hi community,
I have a ModelChoice and when updating that field that is in that select in the view (HTML), I would like to see the reflected data that was previously saved, so that the user decides if he wants to update it or not.

This is my ModelForm
image.png

So you sent the form according
image.png

result
image.png

But the data that was previously saved is not initially visible.

I very much appreciate your suggestions.

Crissy Ball

לא נקראה,
29 בינו׳ 2020, 18:21:0629.1.2020
עד django...@googlegroups.com
Sounds good to me your doing a great job keep up the good work have a blessed day Christie ball


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHAr%3D_0CBdbe-daVYcZac-KbwGg%2BBOYWhVAropH4hTGufYTU5Q%40mail.gmail.com.
השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות