How does loginview decides which form to pass as context to the template

If i want to authenticate the user using login view I need to define template_name , redirect_authenticated_user but how do django decide which form are we passing to the template as context .

All this information is written in the source code of the Loginview itself.
You check the same at the given below link.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.