diff --git a/core/models.py b/core/models.py index 3fe0b834..9b08f223 100755 --- a/core/models.py +++ b/core/models.py @@ -15,6 +15,10 @@ class Campaign(models.Model): def __unicode__(self): return u"Campaign for %s" % self.work.title + def cover_image_small(self): + first_isbn = self.work.editions.all()[0].isbn_10 + return "http://covers.openlibrary.org/b/isbn/%s-S.jpg" % first_isbn + class Work(models.Model): created = models.DateTimeField(auto_now_add=True) diff --git a/frontend/templates/book_list.html b/frontend/templates/book_list.html index 621618f5..be1646a7 100644 --- a/frontend/templates/book_list.html +++ b/frontend/templates/book_list.html @@ -1,6 +1,6 @@ -
+
- Book name + Book name