Skip to content

Commit dd4921d

Browse files
Updated Course display string to utilize Faculty get_first_initial method
1 parent 3fd69df commit dd4921d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/manager/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Meta:
4848
ordering = ['code']
4949

5050
def __str__(self):
51-
return (str(self.code) + ' : ' + str(self.name) + ' - ' + str(self.instructor.last_name) + ', ' + str(self.instructor.first_name)[0])
51+
return (str(self.code) + ' : ' + str(self.name) + ' - ' + str(self.instructor.last_name) + ', ' + str(self.instructor.get_first_initial()))
5252

5353
def num_checkedin(self):
5454
"""

0 commit comments

Comments
 (0)