confirm than your organization is created
This commit is contained in:
parent
ddcd748b00
commit
22bca789bc
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue