Spaces:
Runtime error
Runtime error
Download dashboard/admin.py from OLETECH/BUSINESSTRACKER: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/dashboard/admin.py
- Command line
-
hf download hf://spaces/OLETECH/BUSINESSTRACKER/dashboard/admin.py
-
curl -L -o admin.py https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/dashboard/admin.py
438 Bytes
| from django.contrib import admin | |
| from .models import Sale, Expense | |
| class SaleAdmin(admin.ModelAdmin): | |
| list_display = ['item_name', 'quantity', 'unit_price', 'total', 'date', 'user'] | |
| list_filter = ['date', 'user'] | |
| class ExpenseAdmin(admin.ModelAdmin): | |
| list_display = ['description', 'amount', 'category', 'date', 'user'] | |
| list_filter = ['category', 'date', 'user'] |