Skip to content

Commit

Permalink
Renamed the variables for anti-patter error
Browse files Browse the repository at this point in the history
  • Loading branch information
shaikhmudassir committed Oct 16, 2023
1 parent 80148ff commit 57b5457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,8 @@ def put(self, request, pk, format=None):
)
@extend_schema(tags=["Company"],parameters=swagger_params1.organization_params)
def delete(self, request, pk, format=None):
Company = self.get_object(pk)
Company.delete()
company = self.get_object(pk)
company.delete()
return Response(
{"error": False, 'message': 'Deleted successfully'},
status=status.HTTP_200_OK,
Expand Down

0 comments on commit 57b5457

Please sign in to comment.