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:
parent
d1da3eb29a
commit
7af10c52d2
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user