Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range