<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_by_ids(self, ids):
 """Delete objects by ids. :param ids: list of objects ids to delete. :return: True if objects were deleted. Otherwise, return False if no objects were found or the delete was not successful. """

        try:
            self.filter(id__in=ids).delete()
            return True
        except self.model.DoesNotExist:
            return False