summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-18 13:13:18 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-18 13:13:18 +0200
commita30c67e178903cb59422a65518c69253cb950eff (patch)
tree159c039140668df7e2fa424755d781c0fe398eea /ishtar_common/models.py
parent63d9dd174fc702e974ac29359585c69041582b6a (diff)
downloadIshtar-a30c67e178903cb59422a65518c69253cb950eff.tar.bz2
Ishtar-a30c67e178903cb59422a65518c69253cb950eff.zip
QR-Code for documents
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 6f51a840e..d8283e23f 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4945,7 +4945,10 @@ post_save.connect(post_save_cache, sender=LicenseType)
post_delete.connect(post_save_cache, sender=LicenseType)
-class Document(BaseHistorizedItem, OwnPerms, ImageModel, ValueGetter, MainItem):
+class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel,
+ ValueGetter, MainItem):
+ APP = "ishtar-common"
+ MODEL = "document"
EXTERNAL_ID_KEY = 'document_external_id'
DELETE_URL = 'delete-document'
# order is important: put the image in the first match found