1
0
Fork 0

Adds more fields to book data

This commit is contained in:
Mouse Reeve 2020-04-29 10:09:14 -07:00
parent 4f9edae05a
commit 6e218a85de
7 changed files with 48 additions and 9 deletions

View file

@ -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.get(isbn_13=self.isbn)
except Edition.DoesNotExist:
return None