Fix some warnings re: django 1.8