diff --git a/HISTORY.rst b/HISTORY.rst index f49953f..175857a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -22,6 +22,14 @@ History * Improved admin filtering. * Added featured date to post. +******************* +0.8.13 (unreleased) +******************* + +* Drop python 2.6 compatibility +* Fixed exceptions in __str__ +* Drop python 2.6 compatibility + ******************* 0.8.12 (2017-03-11) ******************* diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index 63ab67a..5ae5c7b 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -118,7 +118,7 @@ class BlogCategory(TranslatableModel): ) def __str__(self): - return self.safe_translation_getter('name') + return self.safe_translation_getter('name', any_language=True) def save(self, *args, **kwargs): super(BlogCategory, self).save(*args, **kwargs) @@ -226,7 +226,7 @@ class Post(KnockerModel, ModelMeta, TranslatableModel): get_latest_by = 'date_published' def __str__(self): - return self.safe_translation_getter('title') + return self.safe_translation_getter('title', any_language=True) @property def guid(self, language=None):