Handle new django version