Commit 07460b50 authored by justin's avatar justin

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

parent f050c8b4
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{% endfor %} {% endfor %}
</ul> </ul>
<form action="./forumpost/add"> <form action="./forumposts/add">
<button type="Submit">New Post</button> <button type="Submit">New Post</button>
</form> </form>
......
...@@ -4,10 +4,17 @@ from . import views ...@@ -4,10 +4,17 @@ from . import views
urlpatterns = [ urlpatterns = [
path("", views.forum, name="index"), path("", views.forum, name="index"),
path("forumpost/<int:pk>/details/", views.ForumDetailView.as_view(), name="forumpostdetails"), path(
path("forumpost/add/", views.ForumCreateView.as_view(), name="forumpostadd"), "forumposts/<int:pk>/details/",
path("forumpost/<int:pk>/edit/", views.ForumUpdateView.as_view(), name="forumpostedit"), 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