Fixing compatibility Django .17