Fix Django on 1.6 version