title: How to Add extra context for Class Based Login View?
body: <p>I was previously using <code>Django==2.0.6</code> now I want to upgrade it to <code>Django==2.2.3</code>. And Doing some research I get to know that In django-2.1, the old function-based views of login, logout have been removed.</p>
  
  <p>I still want to add some extra context to <code>LoginView</code> as per my project requirement..</p>
  
  <p>Previously using Function Based View I have done the following:</p>
  
  <pre><code> from django.contrib.auth.views import login as auth_views_login
  
  def login(*args, **kwargs):
      """
      Auth Login View
      """
      ecom_company = Ecom_Company.objects.filter(pk=1).first()
      landing_details = Landing.objects.filter(company=ecom_company).first()
      category_list = Categories.objects.filter(
          company=ecom_company).exclude(name__exact='Lab Test').order_by('id')
      partners_list = Partners.objects.filter(
          company=ecom_company).order_by('-id')
      stock_list = StockItem.objects.filter(
          organisation=ecom_company.organisation).order_by('id')
  
      context = {
          'ecom_company': ecom_company,
          'landing_details': landing_details,
          'category_list': category_list,
          'partners_list': partners_list,
          'stock_list': stock_list
      }
  
      return auth_views_login(*args, extra_context=context, **kwargs)
  </code></pre>
  
  <p>And in urls:</p>
  
  <pre><code>url(r'login/$', views.login,
          {'template_name': 'login.html'}, name="login"),
  </code></pre>
  
  <p>How do I pass the extra context for Class Based Login View as because <code>Django==2.2</code> does not support the above.</p>