Backport fix for #222 to version 2.5

Enables celerybeat in celery 2.5 to work with Django 1.5