From 9f7e6a8f88a42ecb001ab1e11c96f292a1f1f133 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 13 Dec 2011 17:56:09 +0530 Subject: [PATCH] make participants m2m script --- itf/festival/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/itf/festival/models.py b/itf/festival/models.py index cd435b0..8931f72 100755 --- a/itf/festival/models.py +++ b/itf/festival/models.py @@ -80,6 +80,7 @@ class Participant(ItfModel): title = models.CharField(max_length=255, blank=True, null=True) short_bio = models.TextField(max_length=255, blank=True, null=True) meeting = models.ForeignKey('Meeting') + meetings = models.ManyToManyField('Meeting', related_name='participants') def __unicode__(self): return self.name @@ -101,6 +102,7 @@ class Participant(ItfModel): 'short_bio': self.short_bio } + class Talk(models.Model): title = models.CharField(max_length=255) intro = models.TextField(blank=True, null=True)