Fix home kwarg not being honored by Character.create
This commit is contained in:
parent
6c1a77eecc
commit
9782196b3c
2 changed files with 2 additions and 5 deletions
|
|
@ -2066,9 +2066,6 @@ class DefaultCharacter(DefaultObject):
|
||||||
# Set the supplied key as the name of the intended object
|
# Set the supplied key as the name of the intended object
|
||||||
kwargs["key"] = key
|
kwargs["key"] = key
|
||||||
|
|
||||||
# Get home for character
|
|
||||||
kwargs["home"] = ObjectDB.objects.get_id(kwargs.get("home", settings.DEFAULT_HOME))
|
|
||||||
|
|
||||||
# Get permissions
|
# Get permissions
|
||||||
kwargs["permissions"] = kwargs.get("permissions", settings.PERMISSION_ACCOUNT_DEFAULT)
|
kwargs["permissions"] = kwargs.get("permissions", settings.PERMISSION_ACCOUNT_DEFAULT)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -486,8 +486,8 @@ def create_account(
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
key (str): The account's name. This should be unique.
|
key (str): The account's name. This should be unique.
|
||||||
email (str or None): Email on valid addr@addr.domain form. If
|
email (str or None): Email on valid addr@addr.domain form. If
|
||||||
the empty string, will be set to None.
|
the empty string, will be set to None.
|
||||||
password (str): Password in cleartext.
|
password (str): Password in cleartext.
|
||||||
|
|
||||||
Kwargs:
|
Kwargs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue