changed the path name for Widget Users

parent c54543a1
......@@ -26,6 +26,6 @@ class WidgetUser(models.Model):
return username
def get_absolute_url(self):
return (reverse('widgetusers:user-detail', kwargs={'pk' : self.pk}))
return (reverse('widgetusers:user_details', kwargs={'pk' : self.pk}))
......@@ -6,5 +6,7 @@ from .import views
# url for dashboard
urlpatterns = [
path("", views.dashboard_view, name = "dashboard"),
path("widgetusers/<int:pk>/details", views.WidgetUserDetailView.as_view(), name="user_details"),
]
app_name = "dashboard"
\ No newline at end of file
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