From ab31639d18abdaf2c035cdf803eede7398acda9f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Sep 2019 13:13:18 +0200 Subject: QR-Code for documents --- ishtar_common/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') 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 -- cgit v1.2.3