diff --git a/profiles/views.py b/profiles/views.py index 27bbb8487..6b68d1b6d 100644 --- a/profiles/views.py +++ b/profiles/views.py @@ -179,9 +179,9 @@ def get_serializer_class(self): def perform_destroy(self, instance): serializer = self.get_serializer(data=self.request.data) - if serializer.is_valid(raise_exception=True): - instance.is_deleted = True - instance.save() + serializer.is_valid(raise_exception=True) + instance.is_deleted = True + instance.save() class ViewedCompanyList(ListCreateAPIView):