Merge pull request #55 from nephila/feature/fix_any_language
Use any_language for get_absolute_url
This commit is contained in:
commit
d76eb6f2b7
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,9 @@ History
|
||||||
* Configurable default author support
|
* Configurable default author support
|
||||||
* Refactored settings
|
* Refactored settings
|
||||||
* Fix multilanguage issues
|
* 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)
|
0.2.0 (2014-09-24)
|
||||||
++++++++++++++++++
|
++++++++++++++++++
|
||||||
|
|
|
@ -197,7 +197,9 @@ class Post(ModelMeta, TranslatableModel):
|
||||||
kwargs = {'year': self.date_published.year,
|
kwargs = {'year': self.date_published.year,
|
||||||
'month': '%02d' % self.date_published.month,
|
'month': '%02d' % self.date_published.month,
|
||||||
'day': '%02d' % self.date_published.day,
|
'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)
|
return reverse('djangocms_blog:post-detail', kwargs=kwargs)
|
||||||
|
|
||||||
def thumbnail_options(self):
|
def thumbnail_options(self):
|
||||||
|
|
Loading…
Reference in a new issue