From 8a42b58f870f8f590eebc5ae15d4ecb784f50184 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 18 Jul 2023 15:22:17 +0800 Subject: [PATCH] Fixed subjectstudent model --- stude/subjects/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stude/subjects/models.py b/stude/subjects/models.py index bf00019..8be9592 100644 --- a/stude/subjects/models.py +++ b/stude/subjects/models.py @@ -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):