Fixed warnings (removing compatibility with old Django versions).