def _approve_and_send(self, revision, reviewer, message): revision.reviewer = reviewer revision.reviewed = datetime.now() revision.is_approved = True revision.save() send_reviewed_notification(revision, revision.document, message)
def _approve_and_send(self, revision, reviewer, message): revision.reviewer = reviewer revision.reviewed = datetime.now() revision.is_approved = True revision.save() send_reviewed_notification(revision, revision.document, message)