From 0a9f1e13471abf22b3c2dc46cec8e606bc29e71a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Aug 2016 19:44:02 +0200 Subject: Finds: add creation date, creator, modification date, modifier to sheet (refs #3062) --- ishtar_common/models.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ishtar_common/models.py') 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 -- cgit v1.2.3