def _get_messages(self):
     if hasattr(self, '_messages'):
         return self._messages
     self._messages = get_and_delete_messages(self.request)
     return self._messages
Example #2
0
 def get_and_delete(self):
     messages = get_and_delete_messages(self.request)
     return messages
Example #3
0
 def get_and_delete(self):
     messages = get_and_delete_messages(self.request)
     return messages
Example #4
0
 def _get_messages(self):
     if hasattr(self, '_messages'):
         return self._messages
     self._messages = get_and_delete_messages(self.request)
     return self._messages
Example #5
0
 def get_and_delete(self):
     """returns messages sent to the anonymous user
     via session, and removes messages from the session"""
     messages = get_and_delete_messages(self.request)
     return messages
Example #6
0
 def get_and_delete(self):
     """returns messages sent to the anonymous user
     via session, and removes messages from the session"""
     messages = get_and_delete_messages(self.request)
     return messages