Update all models at once in Django,Model.objects.all().order_by('some_field').update(position=F(some_field) + 1)