Make it runnable under django1.6