Skip to content

Commit

Permalink
Merge pull request #40 from madscientistproductions/patch-1
Browse files Browse the repository at this point in the history
Update views.py
  • Loading branch information
shacker committed Dec 11, 2018
2 parents cb7b4e4 + c41d153 commit 064e1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def list_lists(request) -> HttpResponse:
def del_list(request, list_id: int, list_slug: str) -> HttpResponse:
"""Delete an entire list. Danger Will Robinson! Only staff members should be allowed to access this view.
"""
task_list = get_object_or_404(TaskList, slug=list_slug)
task_list = get_object_or_404(TaskList, id=list_id)

# Ensure user has permission to delete list. Admins can delete all lists.
# Get the group this list belongs to, and check whether current user is a member of that group.
Expand Down

0 comments on commit 064e1d2

Please sign in to comment.