From 1a8c4cc867f7379436ce301160b57eab6e6c5ae4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 10 Apr 2023 15:04:29 -0400 Subject: [PATCH] paperwork: Fix certification_name in list admin Whoops, replaced a bit too aggressively there --- paperwork/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paperwork/admin.py b/paperwork/admin.py index 0dec7fb..1049d26 100644 --- a/paperwork/admin.py +++ b/paperwork/admin.py @@ -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",