docs: def document_created_message(self, request, document):
          """
          Send messages.success message after successful document creation.
          """
          messages.success(request, _("Document {} was created".format(document)))