13 lines
423 B
Python
13 lines
423 B
Python
from django.contrib import admin
|
|
|
|
from .models import ReportingContractConfig
|
|
|
|
|
|
@admin.register(ReportingContractConfig)
|
|
class ReportingContractConfigAdmin(admin.ModelAdmin):
|
|
list_display = ["contract", "is_enabled"]
|
|
list_filter = ["is_enabled"]
|
|
search_fields = ["contract__contract_number"]
|
|
list_editable = ["is_enabled"]
|
|
autocomplete_fields = ["contract"]
|
|
ordering = ["contract__contract_number"]
|