summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 01:34:35 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 01:34:35 +0100
commitebc34fc7a5000886617f828c77b40b0dbde4f279 (patch)
tree1738ee2fb7cd1f66b069f56bd4d482648ea7aecb
parent3e4197d5eeca9c34f04f554b6dc61f0fc94ab75e (diff)
downloadIshtar-ebc34fc7a5000886617f828c77b40b0dbde4f279.tar.bz2
Ishtar-ebc34fc7a5000886617f828c77b40b0dbde4f279.zip
Fix history modification
-rw-r--r--ishtar_common/models.py1
1 files changed, 1 insertions, 0 deletions
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() \