diff options
Diffstat (limited to 'bak/unused_apps/ebay/admin.py')
-rw-r--r-- | bak/unused_apps/ebay/admin.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bak/unused_apps/ebay/admin.py b/bak/unused_apps/ebay/admin.py new file mode 100644 index 0000000..93bf87f --- /dev/null +++ b/bak/unused_apps/ebay/admin.py @@ -0,0 +1,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',) + |