code: def org_registration_form(org_model):
      
  
      class OrganizationRegistrationForm(forms.ModelForm):
          """Form class for creating new organizations owned by new users."""
          email = forms.EmailField()
  
          class Meta:
              model = org_model
              exclude = ("is_active", "users")
  
          def save(self, *args, **kwargs):
              self.instance.is_active = False
              super(OrganizationRegistrationForm, self).save(*args, **kwargs)
  
      return OrganizationRegistrationForm
docs: Generates a registration ModelForm for the given organization model class