Conversations

Models

class ekratia.threads.models.Comment(*args, **kwargs)

Comment Model: Comments under Threads and other comments

calculate_votes()

Calculates total votes based on CommentUserVote

class ekratia.threads.models.CommentManager

Manager for the comment model. Allows custom operation on the tree.

class ekratia.threads.models.CommentUserVote(*args, **kwargs)

CommentUserVote Model: Stores votes from users to Comments

Views

class ekratia.conversations.views.ThreadCreateView(**kwargs)

Creates a Thread

form_class

alias of ThreadForm

form_valid(form)

If the form is valid, save the associated model.

model

alias of Thread

class ekratia.conversations.views.ThreadDetailView(**kwargs)

Detail View for a Thread

get_context_data(**kwargs)

Insert the single object into the context dict.

model

alias of Thread

class ekratia.conversations.views.ThreadListView(**kwargs)

List of Threads

model

alias of Thread