Update lock managet app
Add keyword arguments. Sort imports. Move settings and test literals to their own module. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -38,7 +38,7 @@ class Lock(models.Model):
|
||||
"""
|
||||
try:
|
||||
lock = Lock.objects.get(
|
||||
name=self.name, creation_datetime=self.creation_datetime
|
||||
creation_datetime=self.creation_datetime, name=self.name
|
||||
)
|
||||
except Lock.DoesNotExist:
|
||||
# Our lock has expired and was reassigned
|
||||
|
||||
Reference in New Issue
Block a user