diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 2b874eb9c..8e583a583 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -202,6 +202,7 @@ urlpatterns = [ re_path(r"%s/replies(.json)?/?$" % status_path, views.Replies.as_view()), re_path(r"^post/(?P\w+)/?$", views.CreateStatus.as_view()), re_path(r"^delete-status/(?P\d+)/?$", views.DeleteStatus.as_view()), + re_path(r"^redraft-status/(?P\d+)/?$", views.DeleteAndRedraft.as_view()), # interact re_path(r"^favorite/(?P\d+)/?$", views.Favorite.as_view()), re_path(r"^unfavorite/(?P\d+)/?$", views.Unfavorite.as_view()), diff --git a/bookwyrm/views/__init__.py b/bookwyrm/views/__init__.py index 22e6071c7..d053e971b 100644 --- a/bookwyrm/views/__init__.py +++ b/bookwyrm/views/__init__.py @@ -31,7 +31,7 @@ from .shelf import Shelf from .shelf import create_shelf, delete_shelf from .shelf import shelve, unshelve from .site import Site -from .status import CreateStatus, DeleteStatus +from .status import CreateStatus, DeleteStatus, DeleteAndRedraft from .tag import Tag, AddTag, RemoveTag from .updates import get_notification_count, get_unread_status_count from .user import User, EditUser, Followers, Following