From f63edd2271f9be9a54d6712817a6e235d6893a78 Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Sat, 9 Sep 2017 17:13:41 +0200
Subject: [PATCH] Use ICS prefix for all QR codes

---
 app/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models.py b/app/models.py
index 86a6916..f704763 100644
--- a/app/models.py
+++ b/app/models.py
@@ -148,11 +148,11 @@ class QRCodeMixin:
         """Return a QRCode image to identify a record
 
         The QRCode includes:
+             - ICS prefix
              - the table name
-             - the id of the record
              - the name of the record
         """
-        data = ','.join([self.__tablename__, str(self.id), self.name])
+        data = ':'.join(['ICS', self.__tablename__, self.name])
         return qrcode.make(data, version=1, box_size=5)
 
     def __str__(self):
-- 
GitLab