created url path for edit Widget User page and fixed url mapping: widgetusers/...

parent 70abc00e
...@@ -6,8 +6,9 @@ from . import views ...@@ -6,8 +6,9 @@ from . import views
# url for dashboard # url for dashboard
urlpatterns = [ urlpatterns = [
path("", views.dashboard_view, name = "dashboard"), path("", views.dashboard_view, name = "dashboard"),
path("widgetusers/<int:pk>/details", views.WidgetUserDetailView.as_view(), name="user_details"), path("<int:pk>/details", views.WidgetUserDetailView.as_view(), name="user_details"),
path("widgetusers/add/", views.WidgetUserCreateView.as_view(), name = "new_user"), path("add/", views.WidgetUserCreateView.as_view(), name = "new_user"),
path("<int:pk>/edit", views.WidgetUserUpdateView.as_view(), name="update_author"),
] ]
......
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