Django 1.8 warnings fix