9 lines
329 B
Python
9 lines
329 B
Python
from django.contrib import admin
|
|
from .models import ProcessingBatch
|
|
|
|
|
|
@admin.register(ProcessingBatch)
|
|
class ProcessingBatchAdmin(admin.ModelAdmin):
|
|
list_display = ["batch_reference", "grade", "weight_kg", "status", "harvest_date", "created_at"]
|
|
list_filter = ["status", "grade"]
|
|
search_fields = ["batch_reference"]
|