paperwork: Fix certification_name in list admin
Whoops, replaced a bit too aggressively there
This commit is contained in:
parent
35f812d2c6
commit
1a8c4cc867
@ -118,7 +118,7 @@ class CertificationAdmin(admin.ModelAdmin):
|
|||||||
description="Certification Name",
|
description="Certification Name",
|
||||||
ordering="certification_version__definition__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
|
return obj.certification_version.definition.name
|
||||||
|
|
||||||
@admin.display(
|
@admin.display(
|
||||||
@ -153,7 +153,7 @@ class CertificationAdmin(admin.ModelAdmin):
|
|||||||
|
|
||||||
list_display = [
|
list_display = [
|
||||||
"name",
|
"name",
|
||||||
"name",
|
"certification_name",
|
||||||
"certification_semantic_version",
|
"certification_semantic_version",
|
||||||
"is_current",
|
"is_current",
|
||||||
"certification_department",
|
"certification_department",
|
||||||
@ -164,7 +164,7 @@ class CertificationAdmin(admin.ModelAdmin):
|
|||||||
]
|
]
|
||||||
list_display_links = [
|
list_display_links = [
|
||||||
"name",
|
"name",
|
||||||
"name",
|
"certification_name",
|
||||||
]
|
]
|
||||||
list_filter = [
|
list_filter = [
|
||||||
"certification_version__definition__department",
|
"certification_version__definition__department",
|
||||||
|
Loading…
Reference in New Issue
Block a user