Managers

MessageManager

class userena.contrib.umessages.managers.MessageManager(*args, **kwargs)

Manager for the Message model.

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 User which sends the message.

  • um_to_user_list – A list which elements are User to whom the message is for.

  • message – String containing the message.