docs: def save(self, *args, **kwargs):
          """Save the model."""
          name_max_len = self._meta.get_field('name').max_length
          if len(self.name) > name_max_len:
              self.name = self.name[:(name_max_len - 3)] + '...'
  
          for _ in range(MAX_SLUG_RETRIES):
              try:
                  # Attempt to save the model. It may fail due to slug conflict.
                  with transaction.atomic():
                      super().save(*args, **kwargs)
                      break
              except IntegrityError as error:
                  # Retry in case of slug conflicts.
                  if '{}_slug'.format(self._meta.db_table) in error.args[0]:
                      self.slug = None
                      continue
  
                  raise
          else:
              raise IntegrityError("Maximum number of retries exceeded during slug generation")