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
commit5bd178db63db3ff05165fc131960f198b2fbbca3 (patch)
treec644209eb81804406bfc5f014713dc1f62bc5ad4 /ishtar_common/models.py
parentbb1bb0cf461766997a1496547edbbdf04ade4bd6 (diff)
downloadIshtar-5bd178db63db3ff05165fc131960f198b2fbbca3.tar.bz2
Ishtar-5bd178db63db3ff05165fc131960f198b2fbbca3.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"