cablegates/pandora/item/admin.py
2011-01-05 13:06:48 +00:00

15 lines
340 B
Python

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.contrib import admin
import models
class ItemAdmin(admin.ModelAdmin):
search_fields = ['itemId', 'data', 'external_data']
list_display = ['available', 'itemId', '__unicode__']
list_display_links = ('__unicode__', )
admin.site.register(models.Item, ItemAdmin)