code: def delete_hit_count_handler(sender, instance, save_hitcount=False, **kwargs):
      
      if not save_hitcount:
          instance.hitcount.decrease()
docs: Custom callback for the Hit.delete() method.
  
      Hit.delete(): removes the hit from the associated HitCount object.
      Hit.delete(save_hitcount=True): preserves the hit for the associated
      HitCount object.