Security improvements from Django 1.7