def delete(self, *args, **kwargs):
        qs = self.get_ordering_queryset()
        qs.filter(**{self.order_field_name + '__gt': getattr(self, self.order_field_name)})\
          .update(**{self.order_field_name: F(self.order_field_name) - 1})
        super(OrderedModelBase, self).delete(*args, **kwargs)
dataset/ETHPy150Open bfirsh/django-ordered-model/ordered_model/models.py/OrderedModelBase.delete/original