Merge branch 'attribute_refactor' of https://github.com/volundmush/evennia into volundmush-attribute_refactor
This commit is contained in:
commit
e9e92fab33
6 changed files with 733 additions and 517 deletions
|
|
@ -12,7 +12,7 @@ from collections import defaultdict
|
|||
from django.conf import settings
|
||||
|
||||
from evennia.typeclasses.models import TypeclassBase
|
||||
from evennia.typeclasses.attributes import NickHandler
|
||||
from evennia.typeclasses.attributes import NickHandler, ModelAttributeBackend
|
||||
from evennia.objects.manager import ObjectManager
|
||||
from evennia.objects.models import ObjectDB
|
||||
from evennia.scripts.scripthandler import ScriptHandler
|
||||
|
|
@ -225,7 +225,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
|
||||
@lazy_property
|
||||
def nicks(self):
|
||||
return NickHandler(self)
|
||||
return NickHandler(self, ModelAttributeBackend)
|
||||
|
||||
@lazy_property
|
||||
def sessions(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue