Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{% endblock %}

{% block extra_js %}
{% include "wagtailadmin/pages/_editor_js.html" %}
{% hook_output 'insert_editor_js' %}
<script>
if (typeof window.chooserUrls === "undefined") {
window.chooserUrls = {
Expand Down
8 changes: 7 additions & 1 deletion wagtail_localize/test/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from modelcluster.fields import ParentalKey, ParentalManyToManyField
from modelcluster.models import ClusterableModel
from wagtail import VERSION as WAGTAIL_VERSION
from wagtail import blocks, telepath
from wagtail import blocks
from wagtail.admin.panels import (
FieldPanel,
InlinePanel,
Expand Down Expand Up @@ -34,6 +34,12 @@
from wagtail_localize.segments import StringSegmentValue


try:
from wagtail.admin import telepath
except ImportError: # Wagtail <7.1
from wagtail import telepath


if WAGTAIL_VERSION >= (6, 3):
from wagtail.images.blocks import ImageBlock
else:
Expand Down
Loading