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',)