1
Fork 0
This repository has been archived on 2024-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-draftail-snippet/wagtail_draftail_snippet/urls.py
Tidiane Dia a068e4e9ba
[DUBS-521] Wagtail 3 and Django 4 compatibility (#25)
* 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
2022-05-26 11:03:49 -04:00

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
]