utils.py 216 B

123456
  1. from django.conf import settings
  2. from organizations_ext.models import Organization
  3. def is_organization_creation_open() -> bool:
  4. return settings.ENABLE_ORGANIZATION_CREATION or not Organization.objects.exists()