Fixed subjectstudent model

This commit is contained in:
Keannu Bernasol 2023-07-18 15:22:17 +08:00
parent 2c131489bc
commit 8a42b58f87

View file

@ -29,7 +29,7 @@ class SubjectStudent(models.Model):
'subjects.Subject', on_delete=models.CASCADE)
def __str__(self):
return f'User={self.user_id}, Subject={self.subject_name}'
return f'User={self.user.full_name}, Subject={self.subject.name}'
class SubjectCourse(models.Model):