Commit 6e639a13 by Bill Filler

remove setting key on journal model

parent d44aff77
...@@ -39,7 +39,6 @@ class EcommerceJournalDataLoader(): ...@@ -39,7 +39,6 @@ class EcommerceJournalDataLoader():
attributes = {attribute['name']: attribute['value'] for attribute in body['attribute_values']} attributes = {attribute['name']: attribute['value'] for attribute in body['attribute_values']}
journal_uuid = attributes.get('UUID') journal_uuid = attributes.get('UUID')
title = body['title'] title = body['title']
key = journal_uuid # TODO, either drop this or create another attribute on the ecommerce product class
if body['stockrecords']: if body['stockrecords']:
stock_record = body['stockrecords'][0] stock_record = body['stockrecords'][0]
...@@ -71,7 +70,6 @@ class EcommerceJournalDataLoader(): ...@@ -71,7 +70,6 @@ class EcommerceJournalDataLoader():
defaults = { defaults = {
'partner': self.partner, 'partner': self.partner,
'uuid': journal_uuid, 'uuid': journal_uuid,
'key': key,
'title': title, 'title': title,
'price': price, 'price': price,
'currency': currency, 'currency': currency,
......
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