class SoftDeleteManager(models.Manager):
    use_for_related_fields = True

def get_query_set(self):
    query_set = super(SoftDeleteManager, self).get_query_set()
return query_set.filter(deleted_at__isnull=True)
How to soft delete many to many relation with Django