summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-26 20:14:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:38:57 +0200
commitc33e49777af11ad8cadc311833136cbaf5872962 (patch)
treec644209eb81804406bfc5f014713dc1f62bc5ad4 /ishtar_common/models.py
parent01945a4aeca368458236cf022b64be2b3539e66b (diff)
downloadIshtar-c33e49777af11ad8cadc311833136cbaf5872962.tar.bz2
Ishtar-c33e49777af11ad8cadc311833136cbaf5872962.zip
QR code: QR code export, display on ODT and PDF
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 9b5185be4..247ab4f61 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1572,6 +1572,7 @@ class FixAssociated(object):
class QRCodeItem(models.Model, ImageContainerModel):
+ HAS_QR_CODE = True
qrcode = models.ImageField(upload_to=get_image_path, blank=True, null=True,
max_length=255)
@@ -1582,7 +1583,7 @@ class QRCodeItem(models.Model, ImageContainerModel):
url = self.get_absolute_url()
site = Site.objects.get_current()
if request:
- scheme = self.request.scheme
+ scheme = request.scheme
else:
if secure:
scheme = "https"