diff options
| 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 | 
| commit | e9d6693c6739bad822fd62873a0afd85d248729f (patch) | |
| tree | 1738ee2fb7cd1f66b069f56bd4d482648ea7aecb | |
| parent | 1a88e445126361024a6e5eaa0dc2d1b95cd2a90a (diff) | |
| download | Ishtar-e9d6693c6739bad822fd62873a0afd85d248729f.tar.bz2 Ishtar-e9d6693c6739bad822fd62873a0afd85d248729f.zip | |
Fix history modification
| -rw-r--r-- | ishtar_common/models.py | 1 | 
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() \ | 
