From e9d6693c6739bad822fd62873a0afd85d248729f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 28 Oct 2013 01:34:35 +0100 Subject: Fix history modification --- ishtar_common/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 54381598e..89fbd1589 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -70,6 +70,7 @@ class HistoricalRecords(BaseHistoricalRecords): if not q_history.count(): manager.create(history_type=type, **attrs) return + old_instance = q_history.all()[0] # multiple saving by the same user in a very short time are generaly # caused by post_save signals it is not relevant to keep them min_history_date = datetime.datetime.now() \ -- cgit v1.2.3