From 198d6b0cd586acf9951e6f5d3ea9ade92e74ac49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org> Date: Fri, 3 Feb 2023 00:48:23 +0100 Subject: [PATCH] Remove deprecated post_create call and urlconfs --- .../forums/templates/forums/forum_detail.html | 1 - scipost_django/forums/urls.py | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/scipost_django/forums/templates/forums/forum_detail.html b/scipost_django/forums/templates/forums/forum_detail.html index f50375280..f4f6d769f 100644 --- a/scipost_django/forums/templates/forums/forum_detail.html +++ b/scipost_django/forums/templates/forums/forum_detail.html @@ -213,7 +213,6 @@ <div class="col-12"> <h2 class="highlight" id="Posts">Posts</h2> <ul> - <li><a href="{% url 'forums:post_create' slug=forum.slug parent_model='forum' parent_id=forum.id %}">Add a new Post (old link)</a></li> <li> <div id="new-post-form"> {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='forum' parent_id=forum.id origin="new-post-form" target="thread-posts" text="Add a new Post" %} diff --git a/scipost_django/forums/urls.py b/scipost_django/forums/urls.py index 490cbf30a..563f69cb3 100644 --- a/scipost_django/forums/urls.py +++ b/scipost_django/forums/urls.py @@ -97,21 +97,11 @@ urlpatterns = [ ]), ), path("", views.ForumListView.as_view(), name="forums"), - path( - "<slug:slug>/post/<str:parent_model>/<int:parent_id>/add/", - views.PostCreateView.as_view(), - name="post_create", - ), path( "<slug:slug>/motion/<str:parent_model>/<int:parent_id>/add/", views.MotionCreateView.as_view(), name="motion_create", ), - path( - "<slug:slug>/post/<str:parent_model>/<int:parent_id>/add/confirm/", - views.PostConfirmCreateView.as_view(), - name="post_confirm_create", - ), path( "<slug:slug>/motion/<str:parent_model>/<int:parent_id>/add/confirm/", views.MotionConfirmCreateView.as_view(), -- GitLab