Fix Django 1.2.x and Celery < 3.0