it/itf/newsfeed/admin.py

11 lines
248 B
Python
Raw Normal View History

2011-03-06 12:53:47 +00:00
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)