def get_max_memberships_for_project(project):
 if (project.owner is None):
  return None
 if project.is_private:
  return project.owner.max_memberships_private_projects
 return project.owner.max_memberships_public_projects

def get_max_memberships_for_project ( project ) : if ( project . owner is None ) : return None if project . is_private : return project . owner . max_memberships_private_projects return project . owner . max_memberships_public_projects
return tha maximun of membersh for a concrete project .