Language function correction

This commit is contained in:
Oleg Lavrovsky 2018-06-22 15:41:13 +02:00
parent 1d8d8d019d
commit 1f2a829983
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ class Contact(models.Model):
return { 'server': sa[0], 'site': sa[1] }
def trans_title_styled(self):
v = self.trans_title.split(' ')
if len(v) != 3: return v
if len(v) != 3: return self.trans_title
return "<strong>%s %s</strong> %s" % tuple(v)
def __str__(self):
return self.trans_title

View file

@ -1 +1 @@
{% if html %}{{ contact.trans_title_styled|safe }}{% else %}{{ contact.trans_title }}{% endif %}
{% if html %}{{ contact.trans_title_styled|safe }}{% else %}{{ contact.title }}{% endif %}