.
This commit is contained in:
+5
-6
@@ -12,6 +12,11 @@ from easy_thumbnails.exceptions import InvalidImageFormatError
|
||||
|
||||
class LongImageColumn(tables.Column):
|
||||
def render(self, value):
|
||||
blocks =[]
|
||||
for obj in value.all():
|
||||
blocks.append(obj.get_block())
|
||||
return "".join(blocks)
|
||||
|
||||
obj = value.first()
|
||||
|
||||
if obj is None:
|
||||
@@ -29,12 +34,6 @@ class LongImageColumn(tables.Column):
|
||||
|
||||
class LongSeriesImageColumn(tables.Column):
|
||||
def render(self, value):
|
||||
blocks =[]
|
||||
for obj in value.all():
|
||||
blocks.append(obj.get_block())
|
||||
return "".join(blocks)
|
||||
|
||||
|
||||
obj = value.first()
|
||||
|
||||
if obj is None:
|
||||
|
||||
Reference in New Issue
Block a user