Template
## Summary - Closes #5 - Optional `shop`, `pos_sync`, `events`, and `shipping` apps gated by `FEATURE_*` flags - Deps match the catalog: shop/events need email + Stripe; POS/shipping need shop - Portal inventory, POS webhooks, capacity tickets, EasyPost/Pirate Ship shipping ## Test plan - [ ] `manage.py test` (152 passed locally) - [ ] Shop cart + paid order decrements stocked inventory - [ ] POS inbound webhook decrements SKU; paid order queues outbound reserve - [ ] Event capacity blocks overbook; paid order emails ticket codes - [ ] Shipping stub label + Pirate Ship CSV of unshipped paid orders - [ ] `validate-env.sh` rejects shop without email/payments, POS/shipping without shop Reviewed-on: #6
17 lines
491 B
Python
17 lines
491 B
Python
from django.contrib import admin
|
|
|
|
from pos_sync.models import POSConnection, SyncEvent
|
|
|
|
|
|
@admin.register(POSConnection)
|
|
class POSConnectionAdmin(admin.ModelAdmin):
|
|
list_display = ("name", "provider", "is_active")
|
|
list_filter = ("provider", "is_active")
|
|
|
|
|
|
@admin.register(SyncEvent)
|
|
class SyncEventAdmin(admin.ModelAdmin):
|
|
list_display = ("direction", "sku", "quantity", "status", "created_at")
|
|
list_filter = ("direction", "status")
|
|
search_fields = ("sku", "external_id")
|