models: Remove TODO to make models we can serialize a global

Turns out that module construction time is too early to run this code.
This commit is contained in:
Thomas Adamcik 2015-04-27 00:04:12 +02:00
parent d1da3eb29a
commit 7af10c52d2

View File

@ -38,7 +38,6 @@ def model_json_decoder(dct):
"""
if '__model__' in dct:
# TODO: move models to a global constant once we split this module
models = {c.__name__: c for c in ImmutableObject.__subclasses__()}
model_name = dct.pop('__model__')
if model_name in models: