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