Updates for making Evennia compatible with Django 1.8+. Still not fully functioning.

This commit is contained in:
Griatch 2015-04-03 20:48:20 +02:00
parent 1bb886de03
commit ee1ec3979c
7 changed files with 8 additions and 17 deletions

View file

@ -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:

View file

@ -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"