fix bug Django 1.4