MCPcopy
hub / github.com/django/django / _store

Method _store

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

Store a list of messages and return a list of any messages which could not be stored. One type of object must be able to be stored, ``Message``. **This method must be implemented by a subclass.**

(self, messages, response, *args, **kwargs)

Source from the content-addressed store, hash-verified

106 )
107
108 def _store(self, messages, response, *args, **kwargs):
109 """
110 Store a list of messages and return a list of any messages which could
111 not be stored.
112
113 One type of object must be able to be stored, ``Message``.
114
115 **This method must be implemented by a subclass.**
116 """
117 raise NotImplementedError(
118 "subclasses of BaseStorage must provide a _store() method"
119 )
120
121 def _prepare_messages(self, messages):
122 """

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected