from django.contrib import admin
from .models import Parcel

@admin.register(Parcel)
class ParcelAdmin(admin.ModelAdmin):
    list_display = ('tracking_number', 'sender_name', 'recipient_name', 'status', 'assignee', 'received_date')
    list_filter = ('status', 'assignee', 'received_date')
    search_fields = ('tracking_number', 'sender_name', 'recipient_name', 'sender_email', 'recipient_email')
    ordering = ('-received_date',)