Show blog_post in admin
parent
809d8c6771
commit
4bb4221df0
|
@ -2,9 +2,10 @@ from django.contrib import admin
|
|||
|
||||
from snipts.models import Favorite, Snipt
|
||||
|
||||
|
||||
class SniptAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('user',)
|
||||
list_display = ('title', 'slug', 'user', 'lexer', 'public', 'created', 'modified',)
|
||||
list_display = ('title', 'slug', 'user', 'lexer', 'public', 'blog_post', 'created', 'modified',)
|
||||
search_fields = ('title', 'user__username', 'lexer', 'id', 'key',)
|
||||
ordering = ('-created',)
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
|
|
Loading…
Reference in New Issue