use proposal number

This commit is contained in:
Luke Hatcher 2012-08-31 03:05:52 -04:00
parent a70c2bdd4b
commit 402a02097f

View file

@ -70,6 +70,10 @@ class Presentation(models.Model):
_proposal = models.OneToOneField(ProposalBase, related_name="presentation")
section = models.ForeignKey(Section, related_name="presentations")
@property
def number(self):
return self.proposal.number
@property
def proposal(self):
if self._proposal:
@ -83,4 +87,4 @@ class Presentation(models.Model):
yield speaker
def __unicode__(self):
return "#%s %s (%s)" % (self.id, self.title, self.speaker)
return "#%s %s (%s)" % (self.number, self.title, self.speaker)