Ugh
parent
37fedf10f2
commit
93eb6019b6
|
@ -58,9 +58,9 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.redirects',
|
'django.contrib.redirects',
|
||||||
|
|
||||||
|
'api',
|
||||||
'compressor',
|
'compressor',
|
||||||
'django_bcrypt',
|
'django_bcrypt',
|
||||||
'piston',
|
|
||||||
'south',
|
'south',
|
||||||
'taggit',
|
'taggit',
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ class CommentInline(admin.TabularInline):
|
||||||
allow_add = False
|
allow_add = False
|
||||||
|
|
||||||
class SniptAdmin(admin.ModelAdmin):
|
class SniptAdmin(admin.ModelAdmin):
|
||||||
|
# TODO: Make user readonly
|
||||||
|
#readonly_fields = ('user',)
|
||||||
list_display = ('title', 'slug', 'user', 'lexer', 'public', 'created', 'modified',)
|
list_display = ('title', 'slug', 'user', 'lexer', 'public', 'created', 'modified',)
|
||||||
search_fields = ('title', 'user__username', 'tags', 'lexer', 'id',)
|
search_fields = ('title', 'user__username', 'tags', 'lexer', 'id',)
|
||||||
ordering = ('created',)
|
ordering = ('created',)
|
||||||
|
|
Loading…
Reference in New Issue