diff --git a/todo/urls.py b/todo/urls.py index 2b771f3..6ea26e3 100644 --- a/todo/urls.py +++ b/todo/urls.py @@ -8,18 +8,48 @@ urlpatterns = [ path('', views.list_lists, name="lists"), # Three paths into `list_detail` view - path('//', views.list_detail, name='list_detail'), - path('mine/', views.list_detail, {'list_slug': 'mine'}, name="mine"), - path('//completed/', views.list_detail, {'view_completed': True}, name='completed_tasks'), + path( + 'mine/', + views.list_detail, + {'list_slug': 'mine'}, + name="mine"), - path('//delete/', views.del_list, name="del_list"), - path('add_list/', views.add_list, name="add_list"), + path( + '//', + views.list_detail, + name='list_detail'), - path('task//', views.task_detail, name='task_detail'), + path( + '//completed/', + views.list_detail, + {'view_completed': True}, + name='list_detail_completed'), + + path( + '//delete/', + views.del_list, + name="del_list"), + + path( + 'add_list/', + views.add_list, + name="add_list"), + + path( + 'task//', + views.task_detail, + name='task_detail'), # FIXME need both of these? - path('search-post/', views.search_post, name="search-post"), - path('search/', views.search, name="search"), + path( + 'search-post/', + views.search_post, + name="search-post"), + + path( + 'search/', + views.search, + name="search"), # View reorder_tasks is only called by JQuery for drag/drop task ordering path('reorder_tasks/', views.reorder_tasks, name="reorder_tasks"),