Skip to content

Instantly share code, notes, and snippets.

@ialexi
Created November 25, 2009 14:56
Show Gist options
  • Select an option

  • Save ialexi/242761 to your computer and use it in GitHub Desktop.

Select an option

Save ialexi/242761 to your computer and use it in GitHub Desktop.
def raw(self):
struct = {
"guid": self.pk,
"firstName": self.firstName,
"lastName": self.lastName,
"addressAs": self.addressAs,
"email": self.email,
"isAttending": self.isAttending,
"isBringingGuest": self.bringingGuest,
"guestName": self.guestName,
"hasResponded": self.responded,
"hasVisited": self.visited,
"lastModified": self.lastModified.isoformat(),
"firstAccess": self.firstAccess.isoformat(),
"slug": self.slug,
"confirmCode": self.confirmCode
}
return struct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment