Convert task_delete and task_done views from GET to POST
This commit is contained in:
parent
891148e496
commit
01cab7a82f
8 changed files with 109 additions and 52 deletions
|
@ -20,7 +20,7 @@ def list_lists(request) -> HttpResponse:
|
|||
searchform = SearchForm(auto_id=False)
|
||||
|
||||
# Make sure user belongs to at least one group.
|
||||
if request.user.groups.all().count() == 0:
|
||||
if not request.user.groups.all().exists():
|
||||
messages.warning(
|
||||
request,
|
||||
"You do not yet belong to any groups. Ask your administrator to add you to one.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue