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

Changed all usages of django.utils.six.moves.xrange to django.utils.six.moves.range.