mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Fixed subjectstudent model
This commit is contained in:
parent
2c131489bc
commit
8a42b58f87
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue