make participants m2m script

This commit is contained in:
Sanj 2011-12-13 17:56:09 +05:30
parent e88ba2e3fa
commit 9f7e6a8f88

View File

@ -80,6 +80,7 @@ class Participant(ItfModel):
title = models.CharField(max_length=255, blank=True, null=True) title = models.CharField(max_length=255, blank=True, null=True)
short_bio = models.TextField(max_length=255, blank=True, null=True) short_bio = models.TextField(max_length=255, blank=True, null=True)
meeting = models.ForeignKey('Meeting') meeting = models.ForeignKey('Meeting')
meetings = models.ManyToManyField('Meeting', related_name='participants')
def __unicode__(self): def __unicode__(self):
return self.name return self.name
@ -101,6 +102,7 @@ class Participant(ItfModel):
'short_bio': self.short_bio 'short_bio': self.short_bio
} }
class Talk(models.Model): class Talk(models.Model):
title = models.CharField(max_length=255) title = models.CharField(max_length=255)
intro = models.TextField(blank=True, null=True) intro = models.TextField(blank=True, null=True)