Added setting extra_info on Book models during import.
authorMarek Stępniowski <marek@stepniowski.com>
Thu, 9 Oct 2008 13:55:59 +0000 (15:55 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Thu, 9 Oct 2008 13:55:59 +0000 (15:55 +0200)
apps/catalogue/models.py

index 2022f1c..81965ce 100644 (file)
@@ -170,6 +170,7 @@ class Book(models.Model):
             book_shelves = list(book.tags.filter(category='set'))
         
         book.title = book_info.title
             book_shelves = list(book.tags.filter(category='set'))
         
         book.title = book_info.title
+        book.extra_info = book_info.to_dict()
         book._short_html = ''
         book.save()
         
         book._short_html = ''
         book.save()