it/itf/pages/admin.py
2011-12-27 18:39:11 +05:30

16 lines
407 B
Python
Executable File

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',)
admin.site.register(Page, PageAdmin)