Fix error on Django 1.4