From fafc94757c38b4d9eca8aaf513009c439debc7da Mon Sep 17 00:00:00 2001 From: MooGoo Date: Thu, 6 Jun 2024 15:11:37 +0800 Subject: [PATCH] fix: named_area display_name (no need id) --- app/models/gazetter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/gazetter.py b/app/models/gazetter.py index 30f910d..516ae74 100644 --- a/app/models/gazetter.py +++ b/app/models/gazetter.py @@ -111,8 +111,7 @@ def __str__(self): @property def display_name(self): - return '[{}]{}{}'.format( - self.id, + return '{}{}'.format( self.name_en if self.name_en else '', f' ({self.name})' if self.name and self.name.strip() else '' )