generated from westfarn/web_django_template
Replaces the client_site template branding, adds shop/shipping, and points beta CI at master for easy deploy. Closes #1
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")
|