cablegates/pandora/item/admin.py

16 lines
339 B
Python
Raw Permalink Normal View History

2010-11-25 15:21:23 +00:00
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.contrib import admin
import models
2011-01-01 11:44:42 +00:00
class ItemAdmin(admin.ModelAdmin):
search_fields = ['itemId', 'data', 'external_data']
2011-06-27 13:39:35 +00:00
list_display = ['rendered', 'itemId', '__unicode__']
2010-12-23 07:55:44 +00:00
list_display_links = ('__unicode__', )
admin.site.register(models.Item, ItemAdmin)
2010-11-25 15:21:23 +00:00