Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Commit

Permalink
Add created_by and date_created to note creation (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
anapaulagomes authored and anneFly committed Mar 7, 2019
1 parent a90a245 commit ceb4986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions closeio/contrib/testing_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ def create_activity_note(self, **kwargs):
notes = self._data('activity_notes', {})
note = kwargs
note['id'] = 'acti_{}'.format(uuid.uuid4().hex)
note['created_by'] = 'user_04EJPREurd0b3KDozVFqXSRbt2uBjw3QfeYa7ZaGTwI'
note['date_created'] = datetime.now(timezone.utc)
lead_id = note['lead_id']

if lead_id not in notes:
Expand Down

0 comments on commit ceb4986

Please sign in to comment.