diff --git a/HISTORY.rst b/HISTORY.rst index 46e968e..a478969 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,7 +10,9 @@ History * Configurable default author support * Refactored settings * Fix multilanguage issues -* Fix SEO fields length. +* Fix SEO fields length +* Post absolute url is generated from the title in any language if current is + not available.. 0.2.0 (2014-09-24) ++++++++++++++++++ diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index c4f2ac3..63cd67e 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -197,7 +197,9 @@ class Post(ModelMeta, TranslatableModel): kwargs = {'year': self.date_published.year, 'month': '%02d' % self.date_published.month, 'day': '%02d' % self.date_published.day, - 'slug': self.safe_translation_getter('slug', language_code=get_language())} + 'slug': self.safe_translation_getter('slug', + language_code=get_language(), + any_language=True)} return reverse('djangocms_blog:post-detail', kwargs=kwargs) def thumbnail_options(self):