import threading
from contextlib import contextmanager
_state = threading.local()
import base64
import json
from django.core.exceptions import BadRequest
from django.db import models
from django.utils import timezone
class SoftDeleteQuerySet(models.QuerySet):
def delete(self):