Rename migration to indicate slowness - may need to drop migration table and --fake run again.
This commit is contained in:
parent
9837835e9e
commit
f6b4155aed
5 changed files with 5 additions and 13 deletions
|
|
@ -117,6 +117,8 @@ def _init_globals():
|
|||
if not _TO_MODEL_MAP:
|
||||
_TO_MODEL_MAP = defaultdict(str)
|
||||
_TO_MODEL_MAP.update(dict((c.natural_key(), c.model_class()) for c in ContentType.objects.all()))
|
||||
# handle old player models by converting them to accounts
|
||||
_TO_MODEL_MAP[(u"players", u"playerdb")] = _TO_MODEL_MAP[(u"accounts", u"accountdb")]
|
||||
if not _SESSION_HANDLER:
|
||||
from evennia.server.sessionhandler import SESSION_HANDLER as _SESSION_HANDLER
|
||||
|
||||
|
|
|
|||
|
|
@ -265,12 +265,3 @@ class PickledObjectField(models.Field):
|
|||
# actual lookup, so all we need to do is limit the lookup types.
|
||||
return super(PickledObjectField, self).get_db_prep_lookup(
|
||||
lookup_type, value, connection=connection, prepared=prepared)
|
||||
|
||||
|
||||
# South support; see http://south.aeracode.org/docs/tutorial/part4.html#simple-inheritance
|
||||
try:
|
||||
from south.modelsinspector import add_introspection_rules
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
add_introspection_rules([], [r"^evennia\.utils\.picklefield\.PickledObjectField"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue