From b461d8ee74bf49fd377ee626dbc3f5d215aef8b8 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 17 Sep 2012 13:36:06 -0400 Subject: [PATCH] Admin and stats on Pro --- snipts/admin.py | 2 +- templates/pro.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/snipts/admin.py b/snipts/admin.py index 80491b2..46a1ee0 100644 --- a/snipts/admin.py +++ b/snipts/admin.py @@ -5,7 +5,7 @@ from snipts.models import Favorite, Snipt class SniptAdmin(admin.ModelAdmin): readonly_fields = ('user',) - list_display = ('title', 'slug', 'user', 'lexer', 'public', 'blog_post', 'created', 'modified', 'publish_date',) + list_display = ('title', 'slug', 'views', 'favs', 'user', 'lexer', 'public', 'blog_post', 'created', 'modified', 'publish_date',) list_filter = ('blog_post',) search_fields = ('title', 'slug', 'user__username', 'lexer', 'id', 'key',) ordering = ('-created',) diff --git a/templates/pro.html b/templates/pro.html index ce6c566..8ed614b 100644 --- a/templates/pro.html +++ b/templates/pro.html @@ -15,6 +15,7 @@
Current Pro features: