forked from erp-dev/erp
12 lines
313 B
Python
12 lines
313 B
Python
from django.contrib import admin
|
|
|
|
from . import models
|
|
|
|
|
|
@admin.register(models.PurchaseOrder)
|
|
class PurchaseOrderAdmin(admin.ModelAdmin):
|
|
list_display = ('id', 'supplier', 'order_date', 'total_amount')
|
|
search_fields = ('supplier__name',)
|
|
list_filter = ('order_date',)
|
|
ordering = ('-order_date',)
|