code: def get_form(self, **kwargs):
          
          if not hasattr(self, "form_class"):
              raise AttributeError(_("You must define a form_class"))
          return self.form_class(**kwargs)
docs: Returns the form for registering or inviting a user