Skip to content

Commit

Permalink
remove the 204 change
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 10, 2023
1 parent 11d48cd commit ecbd57a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/event/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def list(self, request, *args, **kwargs):
if self.queryset.exists():
return super().list(request, *args, **kwargs)
else:
return Response("No Active Event", status=status.HTTP_204_NO_CONTENT)
return Response("No Active Event", status=status.HTTP_400_BAD_REQUEST)


class GetSubEvent(APIView):
Expand All @@ -33,7 +33,7 @@ def get(self, request, pk, format=None):
else:
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
else:
return Response("No Active Sub Event", status=status.HTTP_204_NO_CONTENT)
return Response("No Active Sub Event", status=status.HTTP_400_BAD_REQUEST)

class GetAddon(APIView):
def get(self, request, pk, format=None):
Expand All @@ -46,7 +46,7 @@ def get(self, request, pk, format=None):
else:
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
else:
return Response("No active Addon", status=status.HTTP_204_NO_CONTENT)
return Response("No active Addon", status=status.HTTP_400_BAD_REQUEST)

class ProcessPromoCode(APIView):
def post(self, request, format=None):
Expand Down

0 comments on commit ecbd57a

Please sign in to comment.