paperwork: Fix certification_name in list admin

Whoops, replaced a bit too aggressively there
This commit is contained in:
Adam Goldsmith 2023-04-10 15:04:29 -04:00
parent 35f812d2c6
commit 1a8c4cc867

View File

@ -118,7 +118,7 @@ class CertificationAdmin(admin.ModelAdmin):
description="Certification Name",
ordering="certification_version__definition__name",
)
def name(self, obj: Certification) -> str:
def certification_name(self, obj: Certification) -> str:
return obj.certification_version.definition.name
@admin.display(
@ -153,7 +153,7 @@ class CertificationAdmin(admin.ModelAdmin):
list_display = [
"name",
"name",
"certification_name",
"certification_semantic_version",
"is_current",
"certification_department",
@ -164,7 +164,7 @@ class CertificationAdmin(admin.ModelAdmin):
]
list_display_links = [
"name",
"name",
"certification_name",
]
list_filter = [
"certification_version__definition__department",