MCPcopy
hub / github.com/django/django / update

Method update

django/contrib/messages/storage/base.py:128–140  ·  view source on GitHub ↗

Store all unread messages. If the backend has yet to be iterated, store previously stored messages again. Otherwise, only store messages added after the last iteration.

(self, response)

Source from the content-addressed store, hash-verified

126 message._prepare()
127
128 def update(self, response):
129 """
130 Store all unread messages.
131
132 If the backend has yet to be iterated, store previously stored messages
133 again. Otherwise, only store messages added after the last iteration.
134 """
135 self._prepare_messages(self._queued_messages)
136 if self.used:
137 return self._store(self._queued_messages, response)
138 elif self.added_new:
139 messages = self._loaded_messages + self._queued_messages
140 return self._store(messages, response)
141
142 def add(self, level, message, extra_tags=""):
143 """

Callers 15

_user_get_permissionsFunction · 0.45
_auser_get_permissionsFunction · 0.45
get_formMethod · 0.45
_add_viewMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
readyMethod · 0.45
checkMethod · 0.45
process_responseMethod · 0.45

Calls 2

_prepare_messagesMethod · 0.95
_storeMethod · 0.95

Tested by

no test coverage detected