From 93eb6019b6e147a10a32767ad2e0a5922306712d Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Tue, 21 Jun 2011 00:21:18 -0400 Subject: [PATCH] Ugh --- settings.py | 2 +- snipts/admin.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 06cf927..bd7fe88 100644 --- a/settings.py +++ b/settings.py @@ -58,9 +58,9 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.redirects', + 'api', 'compressor', 'django_bcrypt', - 'piston', 'south', 'taggit', diff --git a/snipts/admin.py b/snipts/admin.py index 0e9811e..54ac756 100644 --- a/snipts/admin.py +++ b/snipts/admin.py @@ -9,6 +9,8 @@ class CommentInline(admin.TabularInline): allow_add = False class SniptAdmin(admin.ModelAdmin): + # TODO: Make user readonly + #readonly_fields = ('user',) list_display = ('title', 'slug', 'user', 'lexer', 'public', 'created', 'modified',) search_fields = ('title', 'user__username', 'tags', 'lexer', 'id',) ordering = ('created',)