fix Deprications for Django 1.7