Forum moderation

The forum_moderation application provides moderation views allowing moderators to move, close or delete forum topics or posts. It also provides access to the moderation queue used to approve or reject posts awaiting approval.

Views

class machina.apps.forum_moderation.views.PostApproveView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.detail.BaseDetailView

A view providing the ability to approve queued forum posts.

approve(request, *args, **kwargs)

Approves the considered post and retirects the user to the success URL.

model

alias of Post

class machina.apps.forum_moderation.views.PostDisapproveView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.detail.BaseDetailView

A view providing the ability to disapprove queued forum posts.

disapprove(request, *args, **kwargs)

Disapproves the considered post and retirects the user to the success URL.

model

alias of Post

class machina.apps.forum_moderation.views.TopicDeleteView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.edit.DeleteView

A view providing the ability to delete forum topics.

delete(request, *args, **kwargs)

Deletes the considered topic and retirects the user to the success URL. Calls the delete() method on the fetched object and then redirects to the success URL. This is a workaround for versions of Django prior 1.6 where the get_success_url() method was called after the delete() method.

model

alias of Topic

class machina.apps.forum_moderation.views.TopicLockView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.detail.BaseDetailView

A view providing the ability to lock forum topics.

lock(request, *args, **kwargs)

Locks the considered topic and retirects the user to the success URL.

model

alias of Topic

class machina.apps.forum_moderation.views.TopicMoveView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.edit.FormMixin, django.views.generic.detail.SingleObjectMixin, django.views.generic.edit.ProcessFormView

A view providing the ability to move forum topics.

model

alias of Topic

class machina.apps.forum_moderation.views.TopicUnlockView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.detail.BaseDetailView

A view providing the ability to unlock forum topics.

model

alias of Topic

unlock(request, *args, **kwargs)

Unlocks the considered topic and retirects the user to the success URL.

class machina.apps.forum_moderation.views.TopicUpdateTypeBaseView(**kwargs)

Bases: machina.apps.forum_permission.viewmixins.PermissionRequiredMixin, django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.detail.BaseDetailView

A view providing the ability to change the type of forum topics: normal, sticky topic or announce.

model

alias of Topic

update_type(request, *args, **kwargs)

Updates the type of the considered topic and retirects the user to the success URL.