Fixed correct and separate handling of database model bases as compared to its proxy classes using different managers for each type (e.g. ObjectDB.objects.all() will return all ObjectDB instances(including proxy instances) whereas Object.objects.all() will only return Objects)
This commit is contained in:
parent
554d1b9834
commit
2ee9e62336
15 changed files with 105 additions and 79 deletions
|
|
@ -5,6 +5,7 @@ See objects.objects for more information on Typeclassing.
|
|||
"""
|
||||
from src.typeclasses.models import TypeclassBase
|
||||
from src.comms.models import Msg, TempMsg, ChannelDB
|
||||
from src.comms.managers import ChannelManager
|
||||
from src.utils import logger
|
||||
from src.utils.utils import make_iter
|
||||
|
||||
|
|
@ -15,6 +16,7 @@ class Channel(ChannelDB):
|
|||
types of communication channels.
|
||||
"""
|
||||
__metaclass__ = TypeclassBase
|
||||
objects = ChannelManager()
|
||||
|
||||
# helper methods, for easy overloading
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue