Fixed usage of deprecated django module