Django 1.5 json compatibility