Merge remote-tracking branch 'origin/release/0.8.x' into develop
This commit is contained in:
commit
13ec4dff29
2 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
*******************
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue