Задать вопрос

Тел: +7 965 3737 888

421

Просмотров

2

Ответов

Simple admin list thumbnail view

This is a very simple way to display images within the admin list view. It is not efficient in the sense that the images are being downloaded in original format, however for cases where the images are not regularly accessed it may be a straightforward option. Can also be tied into WYSIWYG editors like TinyMCE by adding an appropriate href link in the return value.

Вопрос полезен? Да0/Нет0
file_3080.py(882.0б)
None

Ответы (2):

Ответdanfreak:19.03.2009
Ответ полезен? Да0/Нет0

Hey robharvey,

cheers for the snippet!

I'm a django-beginner could you please provide a small example about using this snippet?

Dan

Ответrobharvey:17.04.2007
Ответ полезен? Да0/Нет0

Updated the "ratio" field so that it only changes the image size when it is above the MAX_THUMB_LENGTH.