Add middleware for django-celery.