This commit is contained in:
Ross
2021-12-06 19:22:12 +00:00
parent 73f70643ab
commit dda6215bcb
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -404,6 +404,9 @@ class Series(models.Model):
)
return format_html('<img src="/media/{}" />', thumbnail), len(images)
def get_thumbnail_link(self):
return format_html("<a href='{}'>{}<a/>", self.get_absolute_url(), self.get_thumbnail())
def get_block(self):
examination = self.get_examination_full()
thumb, image_number = self.get_thumbnail()