Updates for django deprecations