kopia lustrzana https://github.com/wagtail/wagtail
Added selected locale if page not root
rodzic
8027cad6f0
commit
62c597b786
|
@ -295,6 +295,7 @@ class BrowseView(View):
|
|||
active_locale_id = selected_locale.pk
|
||||
else:
|
||||
active_locale_id = Locale.get_active().pk
|
||||
selected_locale = get_object_or_404(Locale, id=active_locale_id)
|
||||
|
||||
# we are at the Root level, so get the locales from the current pages
|
||||
choose_url = reverse("wagtailadmin_choose_page")
|
||||
|
|
Ładowanie…
Reference in New Issue