from django.contrib import admin
from apps.resm.models import PaperMonitor

# Register your models here.


@admin.register(PaperMonitor)
class PaperMonitorAdmin(admin.ModelAdmin):
    list_display = ("type", "name", "value", "note", "is_active",
                    "days", "last_run", "last_count")
    list_filter = ("type", "is_active", "note")
    search_fields = ("name", "value", "note")
    list_editable = ("is_active", "days")
    ordering = ("type", "name")
