Replaced every range and xrange with django.utils.six.moves.range
Merge branch '#23812' of https://github.com/Siecje/django into #23812