from django.contrib import admin
from . models import Product, OrderProduct, Order
# Register your models here.
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
    list_display = ('name', 'price', 'category', 'available')


@admin.register(OrderProduct)
class OrderProductAdmin(admin.ModelAdmin):
    list_display = ('product_name','quantity', 'ordered' )


@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
    list_display = ('customer', 'ordered', 'date_ordered')

