Wednesday, January 29, 2020

Update on a ModelChoiceField using Models Forms

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


So you sent the form according


result


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

I very much appreciate your suggestions.

--
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.

No comments:

Post a Comment