Commit 44430db0 by Őry Máté

dashboard: use specific var name in OperationView.bind_to_object

parent a245f33d
...@@ -567,11 +567,11 @@ class OperationView(DetailView): ...@@ -567,11 +567,11 @@ class OperationView(DetailView):
@classmethod @classmethod
def bind_to_object(cls, instance, **kwargs): def bind_to_object(cls, instance, **kwargs):
v = cls() me = cls()
v.get_object = lambda: instance me.get_object = lambda: instance
for key, value in kwargs.iteritems(): for key, value in kwargs.iteritems():
setattr(v, key, value) setattr(me, key, value)
return v return me
class VmOperationView(OperationView): class VmOperationView(OperationView):
......
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