From 7bfbc0e8ac2b2a91d8ace4d2abaf2af6fb4c2592 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Fri, 15 Nov 2024 01:25:20 +0100 Subject: [PATCH] Use correct spelling --- README.rst | 2 +- pretalx_salesforce/models.py | 2 +- pretalx_salesforce/sync.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 97b5c46..1511798 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Information is sent every eight hours or on manual sync, and is mapped as follow - Status__c is set to the submission’s status. - Abstract__c is set to the submission’s abstract plus the submission’s description, separated by two newlines and then stripped of whitespace. - Pretalx_Record__c is set to the submission’s public URL. -- The mapping between Contacts and Sessions is synced to the custom Contact_Session object: +- The mapping between Contacts and Sessions is synced to the custom Contact_Session__c object: - Contact__c is set to the Salesforce Contact. - Session__c is set to the Salesforce Session. diff --git a/pretalx_salesforce/models.py b/pretalx_salesforce/models.py index c8a6ae0..119dfdd 100644 --- a/pretalx_salesforce/models.py +++ b/pretalx_salesforce/models.py @@ -223,7 +223,7 @@ def sync_relations(self, sf=None, force=False): # This is a known relation, and it holds no data of its own, so we don’t # need to update it continue - result = sf.Contact_Session.create(relation) + result = sf.Contact_Session__c.create(relation) speaker_id = relation["Contact__c"]["pretalx_LegacyID__c"] self.synced_data["relation_mapping"][speaker_id] = result["id"] diff --git a/pretalx_salesforce/sync.py b/pretalx_salesforce/sync.py index 7cbb92a..2727ca4 100644 --- a/pretalx_salesforce/sync.py +++ b/pretalx_salesforce/sync.py @@ -19,7 +19,7 @@ def sync_event_with_salesforce(event): """ Syncs an event with Salesforce. The sync maps objects as follows, and requires - the custom Contact_Session and Session objects to be created in Salesforce: + the custom Contact_Session__c and Session objects to be created in Salesforce: - User/SpeakerProfile -> Contact, setting - Contact.pretalx_LegacyID__c = User.code @@ -29,7 +29,7 @@ def sync_event_with_salesforce(event): - Contact.Biography__c = User.event_profile.biography - Contact.Profile_Picture__c = User.avatar.url - - [nothing] -> Contact_Session + - [nothing] -> Contact_Session__c - ID - Session__c = Session - Contact__c = Contact