Fix Django 1.8 warnings