Thumbnails for ImageFields in django admin.
Project description
django_admin_thumbnail
This is a package developed to help you with ImageField visualization in your ModelAdmin. It automatically creates user friendly thumbnail for any ImageField you choose to put in your list_display.
All you have to do is to switch from ModelAdmin to ThumbAdmin subclass. It’s super easy to use:
Usage
Insert admin_thumbnail to the end of your INSTALLED_APPS in settings.py:
INSTALLED_APPS = ( ... 'admin_thumbnail', ... )
Now, your ModelAdmin must look like this:
from models import ModelExample from admin_thumbnail import thumb_admin from django.contrib import admin class ModelExampleAdmin(thumb_admin.ThumbAdmin): list_display = ('a_image_field',) admin.register(ModelExample, ModelExampleAdmin)
Yes! It’s THAT simple!
Requirements
Installation
Install using pip:
pip install django-admin-thumbnail
Check This Out
Contact
If you have any comments, ideas questions, feedback, etcetera, email me and we’ll be in touch. I’m flavio@vieiracaetano.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_admin_thumbnail-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9853a4d9f7769082c004861a2d5f1e4e6a2e0a4e15ffd9f0ed0c587834ef9b09 |
|
MD5 | 3a3c8e1a8c129aa98a55cb62ecb6ec98 |
|
BLAKE2b-256 | 05b7b237200af3666eaee942cf932d26e429431ee72120a5d16737e57c985b3c |