Skip to content
Snippets Groups Projects
Commit 09c2e4a5 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] core: fix registry initialisation

Registry.init_models now expect a list of model names instead of the
models themself.
parent 856476d4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment