postsactions.py 422 B

12345678910111213141516
  1. from django.utils.translation import ungettext, ugettext_lazy, ugettext as _
  2. from misago.threads import moderation
  3. from misago.threads.views.generic.actions import ActionsBase
  4. __all__ = ['PostsActions']
  5. class PostsActions(ActionsBase):
  6. select_items_message = ugettext_lazy(
  7. "You have to select at least one post.")
  8. is_mass_action = True
  9. def get_available_actions(self, kwargs):
  10. return []