diff --git a/app/models.py b/app/models.py index 86a6916e158a567d242858118b8e96ad2c8236b0..f704763ddc56485b509ec284c8bc887c7f0b8fa3 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):