AdminThumbnails

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<template_path>/admin/<app_label>/<model_name>/change_list.html:

{% extends "admin/change_list.html" %}
{% load thumbnail %}
{% block result_list %}
<ul>
  {% for object in  cl.result_list %}
  <li><a href="{{ object.id }}/" title="{{ object }}"><img src="{% thumbnail object.filename 70x70 crop %}"></a></li>
  {% endfor %}
</ul>
{% endblock %}

Comments

jdriscoll (on February 2, 2008):

The open source Django Photologue project (Disclaimer: I wrote it) resizes your images and automatically provides admin thumbnails if desired. It's easy to integrate and very flexible.

#

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.