title: Django How to FormView rename context object?
body: <p>I have a class view which uses <strong>FormView</strong>. I need to change the name of the form i.e. this is what it used to be in my old function view:</p>
  <pre><code> upload_form = ContactUploadForm(request.user)
   context = {'upload': upload_form,}
  </code></pre>
  <p>With my new view I'm assuming I can rename using the get_context_data method but unsure how.</p>
  <p>How can I rename this form to <strong>upload</strong> instead of <strong>form</strong> as my templates uses <code>{{ upload }}</code> not <code>{{ form }}</code>? Thanks.</p>
  <p>Current Class View:</p>
  <pre><code>class ImportFromFile(FormView):
  
      template_name = 'contacts/import_file.html'
      form_class = ContactUploadForm
  
      def get_context_data(self, **kwargs):
          &quot;&quot;&quot;
          Get the context for this view.
          &quot;&quot;&quot;
          # Call the base implementation first to get a context.
          context = super(ImportFromFile, self).get_context_data(**kwargs)
  
          return context
  </code></pre>