Ugh
parent
37fedf10f2
commit
93eb6019b6
|
@ -58,9 +58,9 @@ INSTALLED_APPS = (
|
|||
'django.contrib.sites',
|
||||
'django.contrib.redirects',
|
||||
|
||||
'api',
|
||||
'compressor',
|
||||
'django_bcrypt',
|
||||
'piston',
|
||||
'south',
|
||||
'taggit',
|
||||
|
||||
|
|
|
@ -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',)
|
||||
|
|
Loading…
Reference in New Issue