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") |     _proposal = models.OneToOneField(ProposalBase, related_name="presentation") | ||||||
|     section = models.ForeignKey(Section, related_name="presentations") |     section = models.ForeignKey(Section, related_name="presentations") | ||||||
|      |      | ||||||
|  |     @property | ||||||
|  |     def number(self): | ||||||
|  |         return self.proposal.number | ||||||
|  |      | ||||||
|     @property |     @property | ||||||
|     def proposal(self): |     def proposal(self): | ||||||
|         if self._proposal: |         if self._proposal: | ||||||
|  | @ -83,4 +87,4 @@ class Presentation(models.Model): | ||||||
|             yield speaker |             yield speaker | ||||||
|      |      | ||||||
|     def __unicode__(self): |     def __unicode__(self): | ||||||
|         return "#%s %s (%s)" % (self.id, self.title, self.speaker) |         return "#%s %s (%s)" % (self.number, self.title, self.speaker) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Luke Hatcher
						Luke Hatcher