Commit d256c0c3 by Guba Sándor

runtime model import hack TODO fix it

parent 07258af8
......@@ -3,8 +3,8 @@ def get_node(instance):
based on requirements.
# Return first Node or None
from vm.models import Node
models = __import__('vm.models')
return Node.objects.all()[0]
return models.models.Node.objects.all()[0]
return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment