From 14f2c24a604e36cad62ba9f6f8d71bf500f8e35a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 26 Sep 2023 13:53:14 +0200 Subject: [PATCH 1/1] fix for isbn import --- src/isbn/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isbn/models.py b/src/isbn/models.py index 14e973d8..43d01bfc 100644 --- a/src/isbn/models.py +++ b/src/isbn/models.py @@ -142,7 +142,7 @@ class Isbn(models.Model): add_note = False if isbn.book is None: isbn.book = catalogue_book - elif isbn.book is not catalogue_book: + elif isbn.book != catalogue_book: add_note = True if not isbn.form: isbn.form = form -- 2.20.1