backend/users/views.py
def destroy(self, _request, pk):
        """
        This method is responsible for deleting a user from the system. It's a soft deletion, so it just changes the 'is_active' 
        attribute to False.
        """
        user = self.find_element_or_none(model=Users, identifier=pk)
        if user is not None:
            if user.is_active:
                user.is_active = 0
                user.save()
            return res(status=HTTP_204_NO_CONTENT)
        return res(status=HTTP_404_NOT_FOUND)

        This method is responsible for deleting a user from the system. It's a soft deletion, so it just changes the 'is_active' 
        attribute to False.
        
This method is responsible for deleting a user from the system. It's a soft deletion, so it just changes the 'is_active'
attribute to False.
This method is responsible for deleting a user from the system . It ' s a soft deletion so it just changes the ' is_active ' attribute to False .
def destroy(self, _request, pk):
        user = self.find_element_or_none(model=Users, identifier=pk)
        if user is not None:
            if user.is_active:
                user.is_active = 0
                user.save()
            return res(status=HTTP_204_NO_CONTENT)
        return res(status=HTTP_404_NOT_FOUND)
def destroy ( self , _request , pk ) : user = self . find_element_or_none ( model = Users , identifier = pk ) if user is not None : if user . is_active : user . is_active = 0 user . save ( ) return res ( status = HTTP_204_NO_CONTENT ) return res ( status = HTTP_404_NOT_FOUND )
This method is responsible for deleting a user from the system.
This method is responsible for deleting a user from the system .
"""
        This method is responsible for deleting a user from the system. It's a soft deletion, so it just changes the 'is_active' 
        attribute to False.
        """
self
_request
pk