Answer the question
In order to leave comments, you need to log in
How to autocomplete the ForeignKey of the username field in a form?
There is a form to leave a message.
How to make the username field automatically populated with the username of the currently logged in user?
Answer the question
In order to leave comments, you need to log in
<input name='user' value={{request.user.username}} >
but it's safer to do it on the backend side
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question