admin for pages
This commit is contained in:
parent
32aa20a20f
commit
513a2a8c07
|
@ -1,9 +1,12 @@
|
|||
from django.contrib import admin
|
||||
from models import *
|
||||
from markitup.widgets import MarkItUpWidget
|
||||
# from forms import ArticleForm
|
||||
|
||||
class PageAdmin(admin.ModelAdmin):
|
||||
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
||||
prepopulated_fields = {'slug': ('title',)}
|
||||
|
||||
# search_fields = ('title', 'synopsis',),
|
||||
# list_display = ('title', 'date',)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user