diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-03-09 12:29:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-03-09 12:29:02 +0100 |
commit | 714b01136dd00d488ca6b6c5c07dbc227469b630 (patch) | |
tree | 8df413d66bd6802f4d97e8f5dfb5620a407541f4 /ishtar_common/models_common.py | |
parent | 2e2d42111a9fae88c174557db206fa08d3d24730 (diff) | |
download | Ishtar-714b01136dd00d488ca6b6c5c07dbc227469b630.tar.bz2 Ishtar-714b01136dd00d488ca6b6c5c07dbc227469b630.zip |
Disable bulk_update (generate infinite loop and crash) - Do not post treat on qrcode gen
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 109174439..40b188158 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2986,10 +2986,11 @@ class CompleteIdentifierItem(models.Model, ImageContainerModel): tmpdir_created = True filename = tmpdir + os.sep + "qrcode.png" qr.png(filename, scale=settings.ISHTAR_QRCODE_SCALE) - with open(filename, "rb") as qrfile: - self.qrcode.save("qrcode.png", File(qrfile)) self.skip_history_when_saving = True self._no_move = True + self._no_geo_check = True + with open(filename, "rb") as qrfile: + self.qrcode.save("qrcode.png", File(qrfile)) self.save() if tmpdir_created: shutil.rmtree(tmpdir) |