code: def get_form(self, form_class):
          
          if not hasattr(self, '_form'):
              kwargs = self.get_form_kwargs()
              self._form = form_class(**kwargs)
          return self._form
docs: Returns an instance of the form to be used in this view.