Adds more fields to book data
This commit is contained in:
parent
4f9edae05a
commit
6e218a85de
7 changed files with 48 additions and 9 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.get(isbn_13=self.isbn)
|
||||
except Edition.DoesNotExist:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue