fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2bde30d
)
fix for isbn import
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 26 Sep 2023 11:53:14 +0000
(13:53 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 26 Sep 2023 11:53:14 +0000
(13:53 +0200)
src/isbn/models.py
patch
|
blob
|
history
diff --git
a/src/isbn/models.py
b/src/isbn/models.py
index
14e973d
..
43d01bf
100644
(file)
--- 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
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
add_note = True
if not isbn.form:
isbn.form = form