Created
December 21, 2016 09:12
-
-
Save justinvdm/500da19f2dfa2f132edd40c6157b494b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mentorship/mentor/models.py b/mentorship/mentor/models.py | |
index 356b7b2..4f906a6 100644 | |
--- a/mentorship/mentor/models.py | |
+++ b/mentorship/mentor/models.py | |
@@ -107,7 +107,7 @@ class Call(models.Model): | |
response = api.make_call( | |
self.caller.contact_number, self.receiver.contact_number) | |
if response: | |
- self.call_id = response.get('scheduled_call_id') | |
+ self.call_id = response.json().get('scheduled_call_id') | |
self.save() | |
Event.objects.create(description="Call started", | |
event_type="start_call", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍