Skip to content

Commit

Permalink
CreatedDate and submission states now supported
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Dec 5, 2024
1 parent 79ebd87 commit 0b7854f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pretalx_salesforce/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,11 @@ class SubmissionSalesforceSync(models.Model):

@property
def serialized_state(self):
if self.submission.state in ("submitted", "accepted", "rejected", "confirmed"):
return self.submission.state.capitalize()
return "Rejected"
return self.submission.state.capitalize()

def serialize(self):
return {
# "CreatedDate": self.submission.created.strftime("%Y-%m-%dT%H:%M:%SZ"),
"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": (
Expand Down

0 comments on commit 0b7854f

Please sign in to comment.