summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index 9f5be1e36..c623a0604 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -4453,7 +4453,8 @@ class CompleteIdentifierItem(models.Model, ImageContainerModel):
@property
def qrcode_path(self):
- if not self.qrcode:
+ if not self.qrcode or (
+ self.qrcode.path and not os.path.exists(self.qrcode.path)):
self.generate_qrcode()
if not self.qrcode: # error on qrcode generation
return ""