success
Add a message with the SUCCESS level.
def success(
request: HttpRequest,
message: str,
extra_tags: str,
fail_silently: bool = False
) - > null
Add a message with the SUCCESS level.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current HTTP request object used to retrieve the message storage backend. |
| message | str | The content of the success message to be displayed to the user. |
| extra_tags | str | A space-separated string of custom CSS classes or identifiers to apply to the message. |
| fail_silently | bool = False | If True, suppresses the MessageFailure error if the message storage backend has not been configured. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the message is added to the request's message storage. |