make participants m2m script
This commit is contained in:
parent
e88ba2e3fa
commit
9f7e6a8f88
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user