For Django 1.6