Preparations for migration to Django 1.5.