From 2126f86d4d83409311e264dbaf93facf435a505b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Mon, 9 Jan 2012 07:25:19 +0100 Subject: Added thumbnails for news. --- sublab_project/news/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sublab_project/news/admin.py') diff --git a/sublab_project/news/admin.py b/sublab_project/news/admin.py index 0a145f5..ea422e4 100644 --- a/sublab_project/news/admin.py +++ b/sublab_project/news/admin.py @@ -1,9 +1,10 @@ from django.contrib import admin +from sorl.thumbnail.admin import AdminImageMixin from news.models import News -class NewsAdmin(admin.ModelAdmin): +class NewsAdmin(AdminImageMixin, admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} list_display = ('title', 'date_created', 'date_updated') list_filter = ('author',) -- cgit v1.2.1