summaryrefslogtreecommitdiff
path: root/app/unused_apps/ebay/admin.py
blob: 93bf87ff097f85ec8630002b350652a3f22f7afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.contrib import admin

from .models import Item, Price, TrackedItem 


@admin.register(Item)
class ItemAdmin(admin.ModelAdmin):
    list_display = ('name', 'currently_own', 'purchase_price')


@admin.register(TrackedItem)
class TrackedItemAdmin(admin.ModelAdmin):
    list_display = ('title', 'admin_link', 'date_ending', 'get_latest_price', 'amount_desired' )
    list_filter = ('amount_desired',)