from django.contrib import admin
from .models import Offer


@admin.register(Offer)
class OfferAdmin(admin.ModelAdmin):
    list_display = ['product_name', 'status', 'team_uuid', 'location_name', 'quantity', 'price_per_unit', 'created_at']
    list_filter = ['status', 'created_at', 'category_name']
    search_fields = ['product_name', 'description', 'location_name']
