minor fixes for new django releases