Skip to content

Commit

Permalink
Handle empty track
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Nov 15, 2024
1 parent 82e7321 commit 064a1c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pretalx_salesforce/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def serialize(self):
# "CreatedDate": self.submission.created.strftime("%Y-%m-%dT%H:%M:%SZ"),
"pretalx_LegacyID__c": self.submission.code,
"Name": ellipsis(self.submission.title, 80),
"Track__c": str(self.submission.track.name),
"Track__c": (
str(self.submission.track.name) if self.submission.track else ""
),
"Status__c": self.serialized_state,
"Abstract__c": (
(self.submission.abstract or "")
Expand Down

0 comments on commit 064a1c4

Please sign in to comment.