Use any_language for get_absolute_url
This commit is contained in:
parent
7a9141a000
commit
15311ed0f3
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue