Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created December 21, 2016 09:12
Show Gist options
  • Save justinvdm/500da19f2dfa2f132edd40c6157b494b to your computer and use it in GitHub Desktop.
Save justinvdm/500da19f2dfa2f132edd40c6157b494b to your computer and use it in GitHub Desktop.
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",
@codiebeulaine
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment