Replace locals() with context dicts
This commit is contained in:
parent
35cfd2eb39
commit
0daf9336c0
5 changed files with 80 additions and 31 deletions
10
todo/urls.py
10
todo/urls.py
|
@ -14,17 +14,17 @@ urlpatterns = [
|
|||
{'list_slug': 'mine'},
|
||||
name="mine"),
|
||||
|
||||
path(
|
||||
'<int:list_id>/<str:list_slug>/',
|
||||
views.list_detail,
|
||||
name='list_detail'),
|
||||
|
||||
path(
|
||||
'<int:list_id>/<str:list_slug>/completed/',
|
||||
views.list_detail,
|
||||
{'view_completed': True},
|
||||
name='list_detail_completed'),
|
||||
|
||||
path(
|
||||
'<int:list_id>/<str:list_slug>/',
|
||||
views.list_detail,
|
||||
name='list_detail'),
|
||||
|
||||
path(
|
||||
'<int:list_id>/<str:list_slug>/delete/',
|
||||
views.del_list,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue