Skip to content

Commit

Permalink
if removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Oct 13, 2023
1 parent 54350d0 commit 0613517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0613517

Please sign in to comment.