.
This commit is contained in:
+1
-1
@@ -226,7 +226,7 @@ class LongSeries(models.Model):
|
|||||||
except InvalidImageFormatError:
|
except InvalidImageFormatError:
|
||||||
return format_html('<span title="{}">Invalid image url<span>', image_object)
|
return format_html('<span title="{}">Invalid image url<span>', image_object)
|
||||||
thumbnail = thumbnailer["exam-list"]
|
thumbnail = thumbnailer["exam-list"]
|
||||||
return '<img src="/media/{}" />'.format(thumbnail), len(images)
|
return format_html('<img src="/media/{}" />', thumbnail), len(images)
|
||||||
|
|
||||||
def get_block(self):
|
def get_block(self):
|
||||||
examination = self.get_examination()
|
examination = self.get_examination()
|
||||||
|
|||||||
Reference in New Issue
Block a user