Fix for updated Django