Skip to content

Commit

Permalink
feat: create org in edx organization model
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed May 31, 2024
1 parent 08ef435 commit 15409a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eox_tenant/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re

import six
from organizations.models import Organization

from eox_tenant.edxapp_wrapper.users import get_user_signup_source
from eox_tenant.models import TenantOrganization
Expand Down Expand Up @@ -104,3 +105,4 @@ def synchronize_tenant_organizations(instance):
for org in course_org_filter:
organization, _ = TenantOrganization.objects.get_or_create(name=org)
instance.organizations.add(organization)
Organization.objects.get_or_create(name=org, short_name=org)

0 comments on commit 15409a0

Please sign in to comment.