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
commitab31639d18abdaf2c035cdf803eede7398acda9f (patch)
tree159c039140668df7e2fa424755d781c0fe398eea /ishtar_common/models.py
parenta9295c8037f1c41e5c36c0fdf7be56b625f873a0 (diff)
downloadIshtar-ab31639d18abdaf2c035cdf803eede7398acda9f.tar.bz2
Ishtar-ab31639d18abdaf2c035cdf803eede7398acda9f.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