.
This commit is contained in:
+2
-2
@@ -42,9 +42,9 @@ class LongSeriesImageColumn(tables.Column):
|
|||||||
image_object = obj.image
|
image_object = obj.image
|
||||||
try:
|
try:
|
||||||
thumbnailer = get_thumbnailer(image_object)
|
thumbnailer = get_thumbnailer(image_object)
|
||||||
return format_html('<img src="/media/{}" /><br/>[{}]', thumbnailer["exam-list"], len(value))
|
return format_html('<img src="/media/{}" /><br/>[{}]', thumbnailer["exam-list"], value.count())
|
||||||
except InvalidImageFormatError:
|
except InvalidImageFormatError:
|
||||||
return format_html('<span title="{}">Invalid image url<span><br/>[{}]', image_object, len(value))
|
return format_html('<span title="{}">Invalid image url<span><br/>[{}]', image_object, value.count())
|
||||||
|
|
||||||
|
|
||||||
class LongTable(tables.Table):
|
class LongTable(tables.Table):
|
||||||
|
|||||||
Reference in New Issue
Block a user