Spaces:
Runtime error
Runtime error
Download inventory/admin.py from OLETECH/BUSINESSTRACKER: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/inventory/admin.py
- Command line
-
hf download hf://spaces/OLETECH/BUSINESSTRACKER/inventory/admin.py
-
curl -L -o admin.py https://huggingface.co/spaces/OLETECH/BUSINESSTRACKER/resolve/main/inventory/admin.py
320 Bytes
| from django.contrib import admin | |
| from .models import Product | |
| class ProductAdmin(admin.ModelAdmin): | |
| list_display = [ | |
| 'name', 'category', 'quantity', | |
| 'initial_quantity', 'unit_price', 'is_low_stock' | |
| ] | |
| list_filter = ['category'] | |
| search_fields = ['name'] |