title: Django form not rendered by auth_views.LoginView
body: <p>I have a problem that is that Django is not rendering one of the fields of my Login form. I'm using the auth_views.LoginView view for user authentication, and even if I put my template, one of the fields does not appear in my html.</p>
  
  <p>Url.py:</p>
  
  <pre><code>from django.urls import path, re_path
  from django.contrib.auth import views as auth_views
  from Turnos import views
  
  urlpatterns = [
  path('', views.home, name='home'),
  </code></pre>
  
  with views.login view it works perfectly
  
  <pre><code>#path('login/', views.login, name='login'), 
  </code></pre>
  
  with auth_views.LoginView.as_view(template_name='login.html') doesn't render the email field
  
  <pre><code>path('login/', auth_views.LoginView.as_view(template_name='login.html'), name='login'),
  </code></pre>
  
  <p>]</p>
  
  <p>views.py:</p>
  
  <pre><code>from django.shortcuts import render, redirect
  from django.contrib.auth.models import User
  from django.contrib.auth import login as auth_login
  from Turnos.forms import loginForm
  
  def login(request):
      if request.method == 'POST':
          form = loginForm(request.POST)
          if form.is_valid():
              user = form.save()
              auth_login(request, user)
              return redirect('nuevoTurno.html')
      else:
          form = loginForm()
      return render(request, 'login.html', {'form': form})
  </code></pre>
  
  <p>forms.py:</p>
  
  <pre><code>from django import forms
  from django.contrib.auth.models import User
  
  class loginForm(forms.ModelForm):
      email = forms.EmailField(required=True, widget=forms.EmailInput())
      password = forms.CharField(widget=forms.PasswordInput())
  
      class Meta:
           model = User
           fields = ['email', 'password']
  </code></pre>
  
  <p>Html:</p>
  
  <pre><code>&lt;form action="/login/" method="post" novalidate&gt;
                          {% csrf_token %}
                          &lt;div class="form-group"&gt;
                              &lt;label for="{{ form.email.label }}" class=""&gt;Email&lt;/label&gt;
  
                              {% render_field form.email class+="form_control form-control-lg" placeholder="Email" %}
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="{{ form.password.label }}" class=""&gt;Password&lt;/label&gt;
  
                              {% render_field form.password placeholder="Password" class+="form_control form-control-lg" %}
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;button type="submit" class="btn btn-outline-light btn-block"&gt;
                                  Enviar
                              &lt;/button&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;a href="#" style="color: #fff"&gt;Lost password?&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  </code></pre>
  
  <p>the email field is not displayed with auth_views.loginview</p>
  
  <p>sorry for my English.</p>