You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
371 B
9 lines
371 B
from django.contrib import admin
|
|
from .models import GoodsReception
|
|
|
|
@admin.register(GoodsReception)
|
|
class GoodsReceptionAdmin(admin.ModelAdmin):
|
|
list_display = ('product', 'quantity', 'quality_check', 'shelf_life_valid', 'is_accepted', 'rejection_reason')
|
|
search_fields = ('product__name',)
|
|
list_filter = ('is_accepted', 'quality_check', 'shelf_life_valid')
|