confirm than your organization is created

This commit is contained in:
Cayo Puigdefabregas 2024-02-23 10:57:47 +01:00
parent ddcd748b00
commit 22bca789bc

View file

@ -7,9 +7,8 @@ from utils import credtools
from django.conf import settings
from django.core.management.base import BaseCommand
from django.contrib.auth import get_user_model
from django.core.cache import cache
from decouple import config
from idhub.models import DID, Schemas
from idhub.models import Schemas
from oidc4vp.models import Organization
@ -36,6 +35,9 @@ class Command(BaseCommand):
for r in f:
self.create_organizations(r[0].strip(), r[1].strip())
# You need to confirm than your Organization is created
assert Organization.objects.filter(name=settings.ORGANIZATION).exists()
if settings.SYNC_ORG_DEV == 'y':
self.sync_credentials_organizations("pangea.org", "somconnexio.coop")
self.sync_credentials_organizations("local 8000", "local 9000")