Skip to content

Commit

Permalink
EGCETSII#11 - fix: Fixed minor bug in census bulk delete for testing
Browse files Browse the repository at this point in the history
Added .data to request to get the correct idList
  • Loading branch information
josaloroc committed Jan 8, 2022
1 parent a15289c commit aeb101c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decide/administration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def delete(self, request):
Census.objects.all().delete()
return Response({}, status=HTTP_200_OK)
else:
ids = request.get("idList")
ids = request.data.get("idList")
Census.objects.filter(id__in=ids).delete()
return Response({}, status=HTTP_200_OK)

Expand Down

0 comments on commit aeb101c

Please sign in to comment.