From 761084f280007e302fc9ae9c738b32fd0490bb70 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 1 Nov 2012 09:21:54 -0500 Subject: Allow editing news.safe_mode flag via admin screen We need to mark the property as editable, but you still don't have access to it through the normal non-admin views and edit screen. Signed-off-by: Dan McGee --- news/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'news/admin.py') diff --git a/news/admin.py b/news/admin.py index 1b7de1d..ad3cf51 100644 --- a/news/admin.py +++ b/news/admin.py @@ -3,7 +3,7 @@ from django.contrib import admin from .models import News class NewsAdmin(admin.ModelAdmin): - list_display = ('title', 'author', 'postdate', 'last_modified') + list_display = ('title', 'author', 'postdate', 'last_modified', 'safe_mode') list_filter = ('postdate', 'author') search_fields = ('title', 'content') -- cgit v1.2.3-24-g4f1b