Models

class user_messages.models.Thread(models.Model)
subject

The subject of the thread.

users

Related manager for the users in the thread.

messages

Related manager for the Message objects in this thread.

get_absolute_url(self)

Returns the URL for the thread detail page.

first_message

The first message in the thread (by date).

latest_message

The latest message in the thread (by date).

classmethod ordered(cls, objs)

Orders objs (which can be any iterable) by the date of their latest message.

class user_messages.models.Message
thread

The Thread this message is in.

sender

The User who sent this message.

sent_at

The datetime this message was sent at.

content

The text of the message.