diff --git a/evennia/web/admin/accounts.py b/evennia/web/admin/accounts.py index 6f3f1aa9eb..35ea9029ba 100644 --- a/evennia/web/admin/accounts.py +++ b/evennia/web/admin/accounts.py @@ -58,8 +58,8 @@ class AccountChangeForm(UserChangeForm): label="Typeclass", help_text="This is the Python-path to the class implementing the actual account functionality. " "You usually don't need to change this from the default.
" - "If your custom class is not found here, it may not be imported as part of Evennia's startup.", - choices=adminutils.get_and_load_typeclasses(parent=AccountDB), + "If your custom class is not found here, it may not be imported into Evennia yet.", + choices=lambda: adminutils.get_and_load_typeclasses(parent=AccountDB), ) db_lock_storage = forms.CharField( diff --git a/evennia/web/admin/objects.py b/evennia/web/admin/objects.py index cb7e387e41..b6e6ce463f 100644 --- a/evennia/web/admin/objects.py +++ b/evennia/web/admin/objects.py @@ -63,8 +63,8 @@ class ObjectCreateForm(forms.ModelForm): help_text="This is the Python-path to the class implementing the actual functionality. " f"
If you are creating a Character you usually need {settings.BASE_CHARACTER_TYPECLASS} " "or a subclass of that.
If your custom class is not found in the list, it may not be imported " - "as part of Evennia's startup.", - choices=adminutils.get_and_load_typeclasses(parent=ObjectDB)) + "into Evennia yet.", + choices=lambda: adminutils.get_and_load_typeclasses(parent=ObjectDB)) db_lock_storage = forms.CharField( label="Locks", required=False, diff --git a/evennia/web/admin/scripts.py b/evennia/web/admin/scripts.py index 6d8ec117b0..bab6874c8e 100644 --- a/evennia/web/admin/scripts.py +++ b/evennia/web/admin/scripts.py @@ -22,8 +22,8 @@ class ScriptForm(forms.ModelForm): db_typeclass_path = forms.ChoiceField( label="Typeclass", help_text="This is the Python-path to the class implementing the actual script functionality. " - "
If your custom class is not found here, it may not be imported as part of Evennia's startup.", - choices=adminutils.get_and_load_typeclasses( + "
If your custom class is not found here, it may not be imported into Evennia yet.", + choices=lambda: adminutils.get_and_load_typeclasses( parent=ScriptDB, excluded_parents=["evennia.prototypes.prototypes.DbPrototype"]) )