From 8ee09a2284734eed4d486d480d38fb67a31a324c Mon Sep 17 00:00:00 2001 From: Joachim Date: Sat, 4 Dec 2021 16:07:38 +0100 Subject: [PATCH] Add url to reach the view --- bookwyrm/urls.py | 5 +++++ bookwyrm/views/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 514bb7e6..1f62c2be 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -336,6 +336,11 @@ urlpatterns = [ ), re_path(r"^save-list/(?P\d+)/?$", views.save_list, name="list-save"), re_path(r"^unsave-list/(?P\d+)/?$", views.unsave_list, name="list-unsave"), + re_path( + r"^list/(?P\d+)/embed/(?P[0-9a-f]+)?$", + views.unsafe_embed_list, + name="embed-list", + ), # User books re_path(rf"{USER_PATH}/books/?$", views.Shelf.as_view(), name="user-shelves"), re_path( diff --git a/bookwyrm/views/__init__.py b/bookwyrm/views/__init__.py index d79de424..d363431c 100644 --- a/bookwyrm/views/__init__.py +++ b/bookwyrm/views/__init__.py @@ -76,7 +76,7 @@ from .inbox import Inbox from .interaction import Favorite, Unfavorite, Boost, Unboost from .isbn import Isbn from .list import Lists, SavedLists, List, Curate, UserLists -from .list import save_list, unsave_list, delete_list +from .list import save_list, unsave_list, delete_list, unsafe_embed_list from .notifications import Notifications from .outbox import Outbox from .reading import create_readthrough, delete_readthrough, delete_progressupdate