Language function correction
This commit is contained in:
parent
1d8d8d019d
commit
1f2a829983
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue