Commit 7eb0155145588b16c5a7fb57439865c0c1ca5296
1 parent
c3093e82
Exists in
master
and in
5 other branches
updated relatade name professor's on subject's model
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
courses/models.py
... | ... | @@ -54,7 +54,7 @@ class Subject(models.Model): |
54 | 54 | create_date = models.DateTimeField(_('Creation Date'), auto_now_add = True) |
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 | - professors = models.ManyToManyField(User,verbose_name=_('Professors'), related_name='subjects') | |
57 | + professors = models.ManyToManyField(User,verbose_name=_('Professors'), related_name='professors_subjects') | |
58 | 58 | students = models.ManyToManyField(User,verbose_name=_('Students'), related_name='subject_student') |
59 | 59 | |
60 | 60 | ... | ... |