Add name property of the wrapped model lock instance to the wrapper.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ class ModelLock(LockingBackend):
|
|||||||
|
|
||||||
def __init__(self, model_instance):
|
def __init__(self, model_instance):
|
||||||
self.model_instance = model_instance
|
self.model_instance = model_instance
|
||||||
|
self.name = model_instance.name
|
||||||
|
|
||||||
def release(self):
|
def release(self):
|
||||||
super(ModelLock, self).release()
|
super(ModelLock, self).release()
|
||||||
|
|||||||
Reference in New Issue
Block a user