Using TypedObjectManager on a non-typeclass doesn't cause any harm, near as I can tell from looking at it and trying the different returns_typeclass methods. Should resolve #1114
This commit is contained in:
parent
b80f7c3637
commit
8b3c0057af
2 changed files with 3 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ def to_object(inp, objtype='player'):
|
||||||
# Msg manager
|
# Msg manager
|
||||||
#
|
#
|
||||||
|
|
||||||
class MsgManager(models.Manager):
|
class MsgManager(TypedObjectManager):
|
||||||
"""
|
"""
|
||||||
This MsgManager implements methods for searching and manipulating
|
This MsgManager implements methods for searching and manipulating
|
||||||
Messages directly from the database.
|
Messages directly from the database.
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,11 @@ Custom manager for HelpEntry objects.
|
||||||
"""
|
"""
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from evennia.utils import logger, utils
|
from evennia.utils import logger, utils
|
||||||
|
from evennia.typeclasses.managers import TypedObjectManager
|
||||||
__all__ = ("HelpEntryManager",)
|
__all__ = ("HelpEntryManager",)
|
||||||
|
|
||||||
|
|
||||||
class HelpEntryManager(models.Manager):
|
class HelpEntryManager(TypedObjectManager):
|
||||||
"""
|
"""
|
||||||
This HelpEntryManager implements methods for searching
|
This HelpEntryManager implements methods for searching
|
||||||
and manipulating HelpEntries directly from the database.
|
and manipulating HelpEntries directly from the database.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue