Managers¶
MessageManager¶
-
class
userena.contrib.umessages.managers.MessageManager¶ Manager for the
Messagemodel.-
get_conversation_between(um_from_user, um_to_user)¶ Returns a conversation between two users
-
send_message(sender, um_to_user_list, body)¶ Send a message from a user, to a user.
Parameters: - sender – The
Userwhich sends the message. - um_to_user_list – A list which elements are
Userto whom the message is for. - message – String containing the message.
- sender – The
-