change to onetoone
This commit is contained in:
parent
5b7087f478
commit
4ecb2272df
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Presentation(models.Model):
|
||||||
speaker = models.ForeignKey("speakers.Speaker", related_name="presentations")
|
speaker = models.ForeignKey("speakers.Speaker", related_name="presentations")
|
||||||
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.ForeignKey(ProposalBase, related_name="presentation")
|
_proposal = models.OneToOneField(ProposalBase, related_name="presentation")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def proposal(self):
|
def proposal(self):
|
||||||
|
|
Loading…
Reference in a new issue