Commit 1bfb73dc by McKenzie Welter Committed by McKenzie Welter

updated program title access field for analytics

parent 09551432
...@@ -73,7 +73,7 @@ def track_completed_order(sender, order=None, **kwargs): # pylint: disable=unus ...@@ -73,7 +73,7 @@ def track_completed_order(sender, order=None, **kwargs): # pylint: disable=unus
'quantity': str(len(order.lines.all())), 'quantity': str(len(order.lines.all())),
'category': 'bundle', 'category': 'bundle',
'variant': variant, 'variant': variant,
'name': program.get('name') 'name': program.get('title')
} }
properties['products'].append(bundle_product) properties['products'].append(bundle_product)
except BasketAttribute.DoesNotExist: except BasketAttribute.DoesNotExist:
......
...@@ -58,7 +58,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase): ...@@ -58,7 +58,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
return order return order
def mock_get_program_data(self, isFull): def mock_get_program_data(self, isFull):
data = {'name': 'test_program', 'courses': [{}]} data = {'title': 'test_program', 'courses': [{}]}
if isFull: if isFull:
data['courses'].append({}) data['courses'].append({})
return data return data
...@@ -162,7 +162,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase): ...@@ -162,7 +162,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
'quantity': str(len(order.lines.all())), 'quantity': str(len(order.lines.all())),
'category': 'bundle', 'category': 'bundle',
'variant': variant, 'variant': variant,
'name': program['name'] 'name': program['title']
} }
properties['products'].append(bundle_product) properties['products'].append(bundle_product)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment