summaryrefslogtreecommitdiff
path: root/news/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-01 09:21:54 -0500
committerDan McGee <dan@archlinux.org>2012-11-01 09:21:54 -0500
commit761084f280007e302fc9ae9c738b32fd0490bb70 (patch)
treee2a10c390f4083ccd1e5931ffb75fc07b86fd6d6 /news/admin.py
parentdf208fb0bd3f8e5783a6e41f411e7aa80179b2b6 (diff)
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 <dan@archlinux.org>
Diffstat (limited to 'news/admin.py')
-rw-r--r--news/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/admin.py b/news/admin.py
index 1b7de1d8..ad3cf517 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')