code: def save(self, commit=True, **kwargs):
          '''Register the current user as admin on creation'''
          org = super(OrganizationForm, self).save(commit=False, **kwargs)
  
          if not org.id:
              user = current_user._get_current_object()
              member = Member(user=user, role='admin')
              org.members.append(member)
  
          if commit:
              org.save()
  
          return orf save(self, commit=True, **kwargs):
          '''Register the current user as admin on creation'''
          org = super(OrganizationForm, self).save(commit=False, **kwargs)
  
          if not org.id:
              user = current_user._get_current_object()
              member = Member(user=user, role='admin')
              org.members.append(member)
  
          if commit:
              org.save()
  
          return org
docs: Register the current user as admin on creation