add foreign key to presentation

This commit is contained in:
Luke Hatcher 2012-08-30 22:55:44 -04:00
parent 7e7d85c7e7
commit 40aede0839

View file

@ -68,6 +68,7 @@ class Presentation(models.Model):
additional_speakers = models.ManyToManyField("speakers.Speaker", blank=True) additional_speakers = models.ManyToManyField("speakers.Speaker", blank=True)
cancelled = models.BooleanField(default=False) cancelled = models.BooleanField(default=False)
_proposal = models.OneToOneField(ProposalBase, related_name="presentation") _proposal = models.OneToOneField(ProposalBase, related_name="presentation")
section = models.ForeignKey(Section, related_name="presentations")
@property @property
def proposal(self): def proposal(self):