We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e199407 + 4b46c98 commit 23845f2Copy full SHA for 23845f2
local_units/models.py
@@ -18,6 +18,9 @@ class LocalUnitType(models.Model):
18
verbose_name=_('Name')
19
)
20
21
+ def __str__(self):
22
+ return f'{self.name} ({self.level})'
23
+
24
25
class LocalUnit(models.Model):
26
country = models.ForeignKey(
@@ -105,3 +108,8 @@ class LocalUnit(models.Model):
105
108
verbose_name=_('Social link')
106
109
107
110
location = models.PointField()
111
112
113
+ branch_name = self.local_branch_name or self.english_branch_name
114
+ return f'{branch_name} ({self.country.name})'
115
0 commit comments