mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-19 22:56:38 +00:00
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):
|
||||
''' see if we already know about the book '''
|
||||
try:
|
||||
return Edition.objects.get(isbn=self.isbn)
|
||||
return Edition.objects.filter(isbn=self.isbn).first()
|
||||
except Edition.DoesNotExist:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue