Skip to content

Commit

Permalink
fix: changed spelling from "delete: to "destroy"
Browse files Browse the repository at this point in the history
  • Loading branch information
avinogrado authored and the-homeless-god committed Aug 31, 2024
1 parent 26def45 commit 0744ac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/backend/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create(self,request,*args,**kwargs):

# Delete

def delete(self,request,*args,**kwargs):
def destroy(self,request,*args,**kwargs):
employe_data = Employee.objects.filter(id=kwargs['pk'])
if employe_data:
employe_data.delete()
Expand Down Expand Up @@ -82,7 +82,7 @@ def create(self,request,*args,**kwargs):
return Response(serializer.errors,status=status.HTTP_400_BAD_REQUEST)

# delete project by id
def delete(self,request,*args,**kwargs):
def destroy(self,request,*args,**kwargs):
project_data = Project.objects.filter(id=kwargs['pk'])
if project_data:
project_data.delete()
Expand Down Expand Up @@ -134,7 +134,7 @@ def create(self,request,*args,**kwargs):
return Response(serializer.errors,status=status.HTTP_400_BAD_REQUEST)

# Delete report by ID
def delete(self,request,*args,**kwargs):
def destroy(self,request,*args,**kwargs):
report_data = Report.objects.filter(id=kwargs['pk'])
if report_data:
report_data.delete()
Expand Down Expand Up @@ -176,7 +176,7 @@ def retrieve(self, request, *args, **kwargs):
return Response(serializer.errors,status=status.HTTP_404_NOT_FOUND)

# Delete report by ID
def delete(self,request,*args,**kwargs):
def destroy(self,request,*args,**kwargs):
objective_data = Report.objects.filter(id=kwargs['pk'])
if objective_data:
objective_data.delete()
Expand Down

0 comments on commit 0744ac7

Please sign in to comment.