Example #1
0
 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)
Example #2
0
 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)