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',)