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