it/itf/newsfeed/admin.py
2011-03-06 18:23:47 +05:30

11 lines
248 B
Python

from django.contrib import admin
from models import *
# from forms import ArticleForm
class NewsItemAdmin(admin.ModelAdmin):
search_fields = ('title', 'text',),
# list_display = ('title', 'date',)
admin.site.register(NewsItem, NewsItemAdmin)