pandora/pandora/news/admin.py
2011-10-07 10:47:19 +02:00

12 lines
220 B
Python

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.contrib import admin
import models
class NewsAdmin(admin.ModelAdmin):
search_fields = ['name', 'title']
admin.site.register(models.News, NewsAdmin)