diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-18 12:04:59 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-18 12:04:59 +0100 |
commit | 55270f2f3be966f0454968434bcb9a04617fbe6d (patch) | |
tree | e207b3674fd5a2089047ff6a82032f6010023ecb /ishtar_common/models.py | |
parent | 1dabbc89e9366c53ebd0c9efda4dc6a2e34db75e (diff) | |
download | Ishtar-55270f2f3be966f0454968434bcb9a04617fbe6d.tar.bz2 Ishtar-55270f2f3be966f0454968434bcb9a04617fbe6d.zip |
Document model: add history to documents
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 = [ |