From 5214717856a95328c6cec569a03421625af4ffb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 27 Jul 2016 11:56:41 +0200 Subject: [PATCH] Fix some of the deadlocks on take_snapshot --- taiga/projects/history/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/history/services.py b/taiga/projects/history/services.py index 764cca39..b9526b08 100644 --- a/taiga/projects/history/services.py +++ b/taiga/projects/history/services.py @@ -312,7 +312,7 @@ def take_snapshot(obj: object, *, comment: str="", user=None, delete: bool=False """ key = make_key_from_model_object(obj) - with advisory_lock(key): + with advisory_lock("history-"+key): typename = get_typename_for_model_class(obj.__class__) new_fobj = freeze_model_instance(obj)