SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 198d6b0c authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Remove deprecated post_create call and urlconfs

parent f0b11b98
No related branches found
No related tags found
No related merge requests found
......@@ -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" %}
......
......@@ -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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment