summaryrefslogtreecommitdiff
path: root/app/stuff/admin.py
blob: 638b40afa94b1a6528560a57aaceb793d8b9b093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.contrib import admin
from stuff.models import Item


class ItemAdmin(admin.ModelAdmin):
    list_display = (
        'title',
        'image_url',
        'admin_thumbnail',
        'creator',
        'item_type',
        'current_price',
        'item_format',
        'isbn'
    )
    list_filter = ['item_format', 'item_type']


admin.site.register(Item, ItemAdmin)