diff --git a/squaresdb/membership/models.py b/squaresdb/membership/models.py index 8e2ff1f..8cbf98f 100644 --- a/squaresdb/membership/models.py +++ b/squaresdb/membership/models.py @@ -235,9 +235,9 @@ class TSClass(models.Model): label = models.CharField(max_length=20) coordinator = models.ForeignKey(Person, on_delete=models.PROTECT, related_name='class_coord') - assistants = models.ManyToManyField('Person', through='TSClassAssist', + assistants = models.ManyToManyField(Person, through='TSClassAssist', related_name='class_assist') - students = models.ManyToManyField('Person', through='TSClassMember', + students = models.ManyToManyField(Person, through='TSClassMember', related_name='classes') start_date = models.DateField(null=True, blank=True) end_date = models.DateField(null=True, blank=True)