more fixes for django version