Run migrations! Changed "Comm" typeclass to be called "Channel" to match the ChannelDB it is a typeclass for. The migration updates all old channel defaults to the new path.

This commit is contained in:
Griatch 2013-12-02 13:45:48 +01:00
parent 72bdc3b37f
commit 6e5de7847a
7 changed files with 170 additions and 12 deletions

View file

@ -373,7 +373,7 @@ def create_channel(key, aliases=None, desc=None,
if not _channelhandler:
from src.comms import channelhandler as _channelhandler
if not typeclass:
typeclass = settings.BASE_COMM_TYPECLASS
typeclass = settings.BASE_CHANNEL_TYPECLASS
try:
new_channel = _ChannelDB(typeclass=typeclass, db_key=key)
new_channel.save()