class DeleteView(UpdateMessageMixin, View): """Mark messages/conversations as deleted.""" field_bit = 'deleted_at' success_msg = lz_("Messages or conversations successfully deleted.") field_value = now()
class UndeleteView(UpdateMessageMixin, View): """Revert messages/conversations from marked as deleted.""" field_bit = 'deleted_at' success_msg = lz_("Messages or conversations successfully recovered.")
class ArchiveView(UpdateMessageMixin, View): """Mark messages/conversations as archived.""" field_bit = 'archived' success_msg = lz_("Messages or conversations successfully archived.") field_value = True