11 lines
248 B
Python
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)
|