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.
12 lines
638 B
12 lines
638 B
from django.contrib import admin
|
|
from unfold.admin import ModelAdmin
|
|
from apps.diplomacy.models import RepresentativeReport
|
|
|
|
|
|
@admin.register(RepresentativeReport)
|
|
class RepresentativeReportAdmin(ModelAdmin):
|
|
list_display = ('title', 'representative', 'region_hub', 'period', 'centers_visited_count', 'status', 'reviewed_by', 'created_at')
|
|
list_display_links = ('title', 'representative', 'region_hub')
|
|
list_filter = ('status', 'region_hub', 'created_at')
|
|
search_fields = ('title', 'activities_summary', 'representative__email', 'representative__fullname', 'region_hub')
|
|
readonly_fields = ('created_at', 'updated_at')
|