From 55270f2f3be966f0454968434bcb9a04617fbe6d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 18 Jan 2019 12:04:59 +0100 Subject: Document model: add history to documents --- ishtar_common/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 8fb6df3ac..4078b5840 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2087,6 +2087,13 @@ class IshtarSiteProfile(models.Model, Cached): u"Change this with care. With incorrect formula, the " u"application might be unusable and import of external " u"data can be destructive.")) + document_external_id = models.TextField( + _(u"Document external id"), + default=u"{index}", + help_text=_(u"Formula to manage document external ID. " + u"Change this with care. With incorrect formula, the " + u"application might be unusable and import of external " + u"data can be destructive.")) person_raw_name = models.TextField( _(u"Raw name for person"), default=u"{name|upper} {surname}", @@ -3754,7 +3761,7 @@ post_save.connect(post_save_cache, sender=LicenseType) post_delete.connect(post_save_cache, sender=LicenseType) -class Document(OwnPerms, ImageModel, FullSearch, Imported): +class Document(BaseHistorizedItem, OwnPerms, ImageModel): # order is important: put the image in the first match found # other will be symbolic links RELATED_MODELS = [ -- cgit v1.2.3