Skip to content

Commit

Permalink
fix: dont load user admin if not custom_reg_form (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto authored Nov 6, 2024
1 parent b3d700c commit aa9ff7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eox_nelp/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
from eox_nelp.payment_notifications.admin import * # noqa: F401
from eox_nelp.pearson_vue.admin import * # noqa: F401

if find_spec('eox_support') and 'eox_support.apps.EoxSupportConfig' in settings.INSTALLED_APPS:
if (
find_spec("eox_support")
and "eox_support.apps.EoxSupportConfig" in settings.INSTALLED_APPS
and "custom_reg_form" in settings.INSTALLED_APPS
):
from eox_nelp.admin.user import * # noqa: F401

0 comments on commit aa9ff7c

Please sign in to comment.