fixed related field issue when topic has not translations for other
language
This commit is contained in:
parent
ca685d5879
commit
cbd64d2e43
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class Post(SortableMixin, KnockerModel, ModelMeta, TranslatableModel):
|
||||||
get_latest_by = 'date_published'
|
get_latest_by = 'date_published'
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.safe_translation_getter('title')
|
return self.safe_translation_getter('title', any_language=True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def guid(self, language=None):
|
def guid(self, language=None):
|
||||||
|
|
Loading…
Reference in a new issue