[FIX] core: fix registry initialisation

Registry.init_models now expect a list of model names instead of the
models themself.
This commit is contained in:
Christophe Simonis
2016-09-22 16:15:26 +02:00
parent 856476d441
commit 09c2e4a5bc
+1 -1
View File
@@ -234,7 +234,7 @@ class Registry(Mapping):
queue = deque(model_names)
while queue:
model = self[queue.popleft()]
models.add(model)
models.add(model._name)
for func in funcs:
queue.extend(func(model))
return models