Fixes Django 1.3 support.