Commit 07460b50 authored by justin's avatar justin

fix: minor change in forum urls (forumpost to forumposts)

parent f050c8b4
......@@ -12,7 +12,7 @@
{% endfor %}
</ul>
<form action="./forumpost/add">
<form action="./forumposts/add">
<button type="Submit">New Post</button>
</form>
......
......@@ -4,10 +4,17 @@ from . import views
urlpatterns = [
path("", views.forum, name="index"),
path("forumpost/<int:pk>/details/", views.ForumDetailView.as_view(), name="forumpostdetails"),
path("forumpost/add/", views.ForumCreateView.as_view(), name="forumpostadd"),
path("forumpost/<int:pk>/edit/", views.ForumUpdateView.as_view(), name="forumpostedit"),
path(
"forumposts/<int:pk>/details/",
views.ForumDetailView.as_view(),
name="forumpostdetails",
),
path("forumposts/add/", views.ForumCreateView.as_view(), name="forumpostadd"),
path(
"forumposts/<int:pk>/edit/",
views.ForumUpdateView.as_view(),
name="forumpostedit",
),
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment