This commit is contained in:
GulliblePsychologist 2021-06-28 11:55:07 +01:00
parent c2c6d8ad50
commit fce3023bae
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ class AccountChangeForm(UserChangeForm):
help_text="This is the Python-path to the class implementing the actual account functionality. " 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.<BR>" "You usually don't need to change this from the default.<BR>"
"If your custom class is not found here, it may not be imported as part of Evennia's startup.", "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), choices=lambda: adminutils.get_and_load_typeclasses(parent=AccountDB),
) )
db_lock_storage = forms.CharField( db_lock_storage = forms.CharField(

View file

@ -64,7 +64,7 @@ class ObjectCreateForm(forms.ModelForm):
f"<BR>If you are creating a Character you usually need <B>{settings.BASE_CHARACTER_TYPECLASS}</B> " f"<BR>If you are creating a Character you usually need <B>{settings.BASE_CHARACTER_TYPECLASS}</B> "
"or a subclass of that. <BR>If your custom class is not found in the list, it may not be imported " "or a subclass of that. <BR>If your custom class is not found in the list, it may not be imported "
"as part of Evennia's startup.", "as part of Evennia's startup.",
choices=adminutils.get_and_load_typeclasses(parent=ObjectDB)) choices=lambda: adminutils.get_and_load_typeclasses(parent=ObjectDB))
db_lock_storage = forms.CharField( label="Locks", db_lock_storage = forms.CharField( label="Locks",
required=False, required=False,

View file

@ -23,7 +23,7 @@ class ScriptForm(forms.ModelForm):
label="Typeclass", label="Typeclass",
help_text="This is the Python-path to the class implementing the actual script functionality. " help_text="This is the Python-path to the class implementing the actual script functionality. "
"<BR>If your custom class is not found here, it may not be imported as part of Evennia's startup.", "<BR>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( choices=lambda: adminutils.get_and_load_typeclasses(
parent=ScriptDB, excluded_parents=["evennia.prototypes.prototypes.DbPrototype"]) parent=ScriptDB, excluded_parents=["evennia.prototypes.prototypes.DbPrototype"])
) )