Skip to content

Commit

Permalink
fix: named_area display_name (no need id)
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Jun 6, 2024
1 parent 6cdf1c9 commit fafc947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/gazetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
)
Expand Down

0 comments on commit fafc947

Please sign in to comment.