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

25 lines
648 B
Python
Raw Normal View History

2022-02-17 17:09:05 +00:00
from django.urls import path
2020-01-08 04:41:21 +00:00
2022-02-17 17:09:05 +00:00
from wagtail.snippets.views import chooser
from .views import choose_snippet_link_model, choose_snippet_embed_model
2020-01-08 04:41:21 +00:00
app_name = "wagtaildraftailsnippet"
urlpatterns = [
path(
"choose-link-model/",
2022-02-17 17:09:05 +00:00
choose_snippet_link_model,
name="choose-snippet-link-model",
),
path(
"choose-embed-model/",
2022-02-17 17:09:05 +00:00
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
2020-01-08 04:41:21 +00:00
]