tidy up table image dlocks
This commit is contained in:
@@ -6,21 +6,6 @@ from .models import Question, UserAnswer
|
||||
|
||||
from django.utils.html import format_html
|
||||
|
||||
#from easy_thumbnails.files import get_thumbnailer
|
||||
|
||||
#from easy_thumbnails.exceptions import InvalidImageFormatError
|
||||
|
||||
#from generic.tables import UserAnswerTable
|
||||
|
||||
|
||||
#class ImageColumn(tables.Column):
|
||||
# def render(self, value):
|
||||
# try:
|
||||
# thumbnailer = get_thumbnailer(value)
|
||||
# return format_html('<img src="/media/{}" />', thumbnailer["exam-list"])
|
||||
# except InvalidImageFormatError:
|
||||
# return format_html('<span title="{}">Invalid image url<span>', value)
|
||||
|
||||
|
||||
class QuestionTable(tables.Table):
|
||||
#edit = tables.LinkColumn(
|
||||
|
||||
Reference in New Issue
Block a user