Skip to content

Instantly share code, notes, and snippets.

@justinvdm
Created March 29, 2017 10:13
Show Gist options
  • Save justinvdm/1bfd6b9e5dc3e3956be00a376fa5591e to your computer and use it in GitHub Desktop.
Save justinvdm/1bfd6b9e5dc3e3956be00a376fa5591e to your computer and use it in GitHub Desktop.
diff --git a/mentorship/mentor/models.py b/mentorship/mentor/models.py
index d903e87..75ec7be 100644
--- a/mentorship/mentor/models.py
+++ b/mentorship/mentor/models.py
@@ -114,6 +114,7 @@ def create_notification_settings(sender, instance, created, **kwargs):
class Call(models.Model):
UPDATE_FIELDS = (
+ 'status',
'partner_id',
'recording_url',
'partner_start_time',
diff --git a/mentorship/mentor/tests/test_models.py b/mentorship/mentor/tests/test_models.py
index 0ba95d6..ce472d5 100644
--- a/mentorship/mentor/tests/test_models.py
+++ b/mentorship/mentor/tests/test_models.py
@@ -432,6 +432,7 @@ class CallTests(TestCase, TestCaseMixin):
data = {
'partner_id': 23,
+ 'status': 'SUCCESSFUL',
'recording_url': 'http://foo.moc',
'partner_start_time': datetime.datetime(1, 2, 3),
'partner_end_time': datetime.datetime(4, 5, 6),
@codiebeulaine
Copy link

👍

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