forked from mirrors/bookwyrm
Isbns aren't necessarily always unique.
This commit is contained in:
parent
9ffab814af
commit
64f9e12b1d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class ImportItem(models.Model):
|
||||||
def get_book_from_db_isbn(self):
|
def get_book_from_db_isbn(self):
|
||||||
''' see if we already know about the book '''
|
''' see if we already know about the book '''
|
||||||
try:
|
try:
|
||||||
return Edition.objects.get(isbn=self.isbn)
|
return Edition.objects.filter(isbn=self.isbn).first()
|
||||||
except Edition.DoesNotExist:
|
except Edition.DoesNotExist:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue