summaryrefslogtreecommitdiff
path: root/sublab_project/news/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/news/admin.py')
-rw-r--r--sublab_project/news/admin.py3
1 files changed, 2 insertions, 1 deletions
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',)