Merge remote-tracking branch 'origin/release/0.8.x' into develop

This commit is contained in:
Iacopo Spalletti 2017-06-10 19:59:56 +02:00
commit 13ec4dff29
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
2 changed files with 10 additions and 2 deletions

View file

@ -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)
*******************

View file

@ -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):