Updates for making Evennia compatible with Django 1.8+. Still not fully functioning.
This commit is contained in:
parent
1bb886de03
commit
ee1ec3979c
7 changed files with 8 additions and 17 deletions
|
|
@ -44,7 +44,7 @@ class ScriptDBManager(TypedObjectManager):
|
|||
"""
|
||||
if not obj:
|
||||
return []
|
||||
player = _GA(_GA(obj, "__class__"), "__name__") == "PlayerDB"
|
||||
player = _GA(_GA(obj, "__dbclass__"), "__name__") == "PlayerDB"
|
||||
if key:
|
||||
dbref = self.dbref(key)
|
||||
if dbref or dbref == 0:
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ class ScriptDB(TypedObject):
|
|||
# defaults
|
||||
__settingsclasspath__ = settings.BASE_SCRIPT_TYPECLASS
|
||||
__defaultclasspath__ = "evennia.scripts.scripts.DefaultScript"
|
||||
__applabel__ = "scripts"
|
||||
|
||||
class Meta:
|
||||
"Define Django meta options"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue