Skip to content

Commit

Permalink
feat: dont import ExtraInfo in initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Jul 11, 2024
1 parent 197409a commit 5a3fc7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eox_nelp/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Utils that can be used for the plugin project"""
import re
from copy import copy
from importlib import import_module

from custom_reg_form.models import ExtraInfo
from opaque_keys.edx.keys import CourseKey

from eox_nelp.edxapp_wrapper.course_overviews import get_course_overviews
Expand Down Expand Up @@ -166,6 +166,7 @@ def save_extrainfo_field(user, field, value):
field (string):
value (any):
"""
ExtraInfo = import_module("custom_reg_form.models").ExtraInfo
if not hasattr(ExtraInfo, field):
return

Expand Down

0 comments on commit 5a3fc7e

Please sign in to comment.