fix for new django version