Answer the question
In order to leave comments, you need to log in
How to insert text into a form?
There is an article. I want to make it possible to edit it by pressing the edit button, and you will have text fields with the article data in which you can make edits (I hope I explained it clearly). So, tell me how to insert data into text fields?
Answer the question
In order to leave comments, you need to log in
When you create an edit form, you pass it the object you want to edit:
form = ArticleForm(instance=article_object)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question