Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If BoolOpAnd Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str orelse Assign NameStore IfExp CompareGt NameLoad Num Str Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Return NameLoad decorator_list decorator_list
N/A N/A Views for the moderation app collections defaultdict django.contrib messages django.contrib.auth get_user_model django.core.cache cache django.core.urlresolvers reverse reverse_lazy django.http Http404 HttpResponseRedirect django.shortcuts get_object_or_404 redirect django.views.generic ListView UpdateView View pure_pagination.mixins PaginationMixin open_connect.groups.models Group open_connect.moderation.forms ModNotificationUpdateForm open_connect.moderation.models Flag open_connect.moderation.utils moderate_messages open_connect.connectmessages.models Message MESSAGE_STATUSES open_connect.connect_core.utils.mixins SortableListMixin DateTimeRangeListMixin PaginateByMixin open_connect.connect_core.utils.views CommonViewMixin N/A POSSIBLE_ACTIONS N/A N/A statuspair N/A 0 N/A statuspair MESSAGE_STATUSES ModeratorOnlyMixin N/A object N/A N/A Mixin that restricts the view to those who can moderate messages dispatch N/A N/A self request N/A args kwargs N/A N/A Override for the view's dispatch method N/A N/A N/A N/A request user can_moderate N/A N/A Http404 N/A N/A N/A N/A super ModeratorOnlyMixin self dispatch request args kwargs N/A N/A ModeratorView N/A PaginationMixin ModeratorOnlyMixin CommonViewMixin ListView N/A N/A View that handles viewing messages to be moderated N/A model Message N/A template_name moderation/messagelist.html N/A paginate_by 20 N/A nav_active_item Admin N/A dd_active_item Message Moderation get_context_data N/A N/A self N/A kwargs N/A N/A Add additional context to the moderation page N/A context N/A N/A N/A super ModeratorView self get_context_data kwargs N/A group_id N/A N/A N/A self kwargs get group N/A group_id N/A N/A N/A context N/A group N/A get_object_or_404 Group pk group_id N/A context N/A get_queryset N/A N/A self N/A N/A N/A Get the queryset for the page N/A queryset N/A N/A N/A self request user messages_to_moderate N/A group N/A N/A N/A self kwargs get group N/A group N/A N/A queryset N/A N/A queryset filter thread__group_id group N/A queryset N/A N/A queryset select_related thread thread__group thread__group__group sender N/A queryset N/A N/A SubmitView N/A ModeratorOnlyMixin View N/A N/A View that processes N/A http_method_names N/A post http_method_not_allowed N/A N/A self request N/A args kwargs N/A N/A Redirect users who are not performing a POST request N/A N/A redirect N/A reverse mod_admin N/A get_success_url N/A N/A self request N/A N/A N/A The url a user should be returned to if post was a success. N/A N/A N/A N/A request POST get next N/A reverse mod_admin N/A post N/A N/A self request N/A kwargs N/A N/A Process moderation changes. N/A change_count 0 N/A actions N/A defaultdict list N/A N/A message_string action N/A N/A N/A request POST iteritems N/A N/A N/A N/A N/A message_string startswith message- N/A N/A N/A message_id N/A N/A N/A message_string split - N/A 1 N/A N/A N/A N/A message_id isdigit N/A action POSSIBLE_ACTIONS N/A N/A N/A N/A N/A actions N/A action append message_id N/A actions N/A N/A change_count N/A moderate_messages actions N/A request user N/A N/A change_count N/A N/A N/A N/A messages warning request No Messages Updated N/A N/A pluralized_message N/A N/A change_count 1 Messages Message N/A N/A N/A messages success request N/A Updated %s %s N/A change_count pluralized_message N/A N/A N/A cache delete N/A %s_messages_to_mod N/A N/A N/A self request user pk N/A N/A redirect N/A N/A self get_success_url request N/A N/A ModerationFrequencyUpdateView N/A ModeratorOnlyMixin UpdateView N/A N/A View for updating individual subscrptions for individual groups N/A http_method_names N/A post N/A model N/A get_user_model N/A form_class ModNotificationUpdateForm N/A success_url N/A reverse_lazy user_profile get_object N/A N/A self queryset N/A None N/A N/A Get the User object to be modified N/A N/A N/A self request user N/A form_valid N/A N/A self form N/A N/A N/A Method to handle a valid form N/A N/A N/A form save N/A N/A N/A messages success N/A self request Your moderation frequency has been set N/A N/A HttpResponseRedirect N/A N/A self get_success_url N/A N/A FlagLogView N/A PaginationMixin PaginateByMixin DateTimeRangeListMixin SortableListMixin CommonViewMixin ModeratorOnlyMixin ListView N/A N/A List moderation actions. N/A model Flag N/A valid_order_by N/A moderation_action__messagemoderationaction__message__text moderation_action__messagemoderationaction__message__status flagged_by__first_name created_at moderation_action__moderator__first_name moderation_action__modified_at moderation_action__messagemoderationaction__newstatus N/A default_order_by -created_at N/A date_range_field created_at N/A nav_active_item Admin N/A dd_active_item Flag Log N/A paginate_by 25 N/A context_object_name flags get_queryset N/A N/A self N/A N/A N/A Get the queryset for the Flag log N/A queryset N/A N/A N/A super FlagLogView self get_queryset N/A N/A N/A N/A N/A self request user global_moderator N/A N/A queryset N/A N/A N/A N/A queryset filter message__thread__group__in N/A N/A N/A self request user groups_moderating distinct N/A queryset N/A N/A