code: def _move_to_end(self, objects):
          
          max_obj = objects.all().aggregate(models.Max('sort_order'))['sort_order__max']
          self.sort_order = max_obj + 1 if max_obj else 1
docs: Temporarily save `self.sort_order` elsewhere (max_obj).