use proposal number
This commit is contained in:
parent
a70c2bdd4b
commit
402a02097f
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue