Fixed the Django 1.3 compat