def get_last_log_entry(self):
        try:
            return self.log_entries.order_by('datetime').last()
        except __HOLE__:
            return None
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_states/models.py/WorkflowInstance.get_last_log_entry