Skip to content

Commit

Permalink
Fix format of translations context variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Oct 15, 2020
1 parent 1fde880 commit 7d53ffa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wagtail_localize/views/edit_translation.py
Expand Up @@ -640,5 +640,11 @@ def edit_translatable_alias_page(request, page):
'content_type': page.cached_content_type,
'next': get_valid_next_url_from_request(request),
'locale': page.locale,
'translations': page.get_translations(),
'translations': [
{
'locale': translation.locale,
'url': reverse('wagtailadmin_pages:edit', args=[translation.id]),
}
for translation in page.get_translations().only('id', 'locale').select_related('locale')
],
})

0 comments on commit 7d53ffa

Please sign in to comment.