Commit 6a60d3e2f2f79b0c4df7f95092748ce106bf4ede

Authored by Matheus Lins
1 parent e1ab2c19

updating the subject's model

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
courses/models.py
... ... @@ -55,6 +55,7 @@ class Subject(models.Model):
55 55 update_date = models.DateTimeField(_('Date of last update'), auto_now=True)
56 56 course = models.ForeignKey(Course, verbose_name = _('Course'), related_name="subjects")
57 57 professors = models.ManyToManyField(User,verbose_name=_('Professors'), related_name='subjects')
  58 + students = models.ManyToManyField(User,verbose_name=_('Students'), related_name='subject_student')
58 59  
59 60  
60 61 class Meta:
... ...