a068e4e9ba
* Update imports for Django 4 compatibility DUBS-521 * use globalThis as global object in js file DUBS-521 * Update package requirements to include Wagtail 3 DUBS-521 * Match requirements in pyproject.toml and setup.py files DUBS-521
24 lines
648 B
Python
24 lines
648 B
Python
from django.urls import path
|
|
|
|
from wagtail.snippets.views import chooser
|
|
|
|
from .views import choose_snippet_link_model, choose_snippet_embed_model
|
|
|
|
|
|
app_name = "wagtaildraftailsnippet"
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"choose-link-model/",
|
|
choose_snippet_link_model,
|
|
name="choose-snippet-link-model",
|
|
),
|
|
path(
|
|
"choose-embed-model/",
|
|
choose_snippet_embed_model,
|
|
name="choose-snippet-embed-model",
|
|
),
|
|
path(
|
|
"choose/", chooser.ChooseView.as_view(), name="choose_generic"
|
|
), # This exists only to get the additional URL params added via JS in wagtail-draftail-snippet.js line 50
|
|
]
|