def save(self, *args, **kwargs): roomlist = ' '.join(map(lambda r: r.__unicode__(), self.rooms)) self.name = "%s %s (%s - %s) %s" % (self.day, self.kind, self.start.strftime("%H:%M"), self.end.strftime("%H:%M"), roomlist) self.content_override_html = parse(self.content_override) super(Slot, self).save(*args, **kwargs)
def save(self, **kwargs): self.comment_html = parse(self.comment) if self.vote: vote, created = LatestVote.objects.get_or_create( proposal=self.proposal, user=self.user, defaults=dict( vote=self.vote, submitted_at=self.submitted_at, )) if not created: LatestVote.objects.filter(pk=vote.pk).update(vote=self.vote) self.proposal.result.update_vote(self.vote, previous=vote.vote) else: self.proposal.result.update_vote(self.vote) super(Review, self).save(**kwargs)
def save(self, **kwargs): self.comment_html = parse(self.comment) if self.vote: vote, created = LatestVote.objects.get_or_create( proposal=self.proposal, user=self.user, defaults=dict( vote=self.vote, submitted_at=self.submitted_at, ) ) if not created: LatestVote.objects.filter(pk=vote.pk).update(vote=self.vote) self.proposal.result.update_vote(self.vote, previous=vote.vote) else: self.proposal.result.update_vote(self.vote) super(Review, self).save(**kwargs)
def save(self, *args, **kwargs): self.content_override_html = parse(self.content_override) return super(Slot, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.description_html = parse(self.description) self.abstract_html = parse(self.abstract) return super(Presentation, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.biography_html = parse(self.biography) return super(Speaker, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.abstract_html = parse(self.abstract) self.private_abstract_html = parse(self.private_abstract) self.technical_requirements_html = parse(self.technical_requirements) return super(ProposalBase, self).save(*args, **kwargs)
def parse_content(self, content): return parse(content)
def save(self, *args, **kwargs): self.text_html = parse(self.text) return super(Comment, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.message_html = parse(self.message) return super(ProposalMessage, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.experience_html = parse(self.experience) self.twitter_username = self.clean_twitter_username() return super(ConferenceSpeaker, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.abstract_html = parse(self.abstract) self.additional_notes_html = parse(self.additional_notes) return super(ProposalBase, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.comment_html = parse(self.comment) return super(ProposalFeedback, self).save(*args, **kwargs)
def save(self, *args, **kwargs): roomlist = " ".join(map(lambda r: r.__unicode__(), self.rooms)) self.name = "%s %s (%s - %s) %s" % (self.day, self.kind, self.start, self.end, roomlist) self.content_override_html = parse(self.content_override) super(Slot, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.biography_html = parse(self.biography) self.experience_html = parse(self.experience) self.accessibility_html = parse(self.accessibility) return super(Speaker, self).save(*args, **kwargs)