Since Python3 is the default, using `from django.utils.six.moves import range` would be better.