Fix a pretty-print on companies

This commit is contained in:
2023-10-23 18:54:57 +02:00
parent b23801dbf0
commit ef767ec33d
3 changed files with 6 additions and 3 deletions

View File

@@ -76,6 +76,9 @@ class Company(models.Model):
}
)
def extended_name_pp(self):
return "({})".format(self.extended_name) if self.extended_name else ""
def logo_thumbnail(self):
return get_image_preview(self.logo.url)