summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 02786a8e4..97e578f01 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -686,6 +686,13 @@ class BaseHistorizedItem(Imported):
except IndexError:
return
+ @property
+ def history_creation_date(self):
+ try:
+ return self.history.order_by('history_date').all()[0].history_date
+ except IndexError:
+ return
+
def rollback(self, date):
"""
Rollback to a previous state