Skip to content

Commit afb5fcd

Browse files
Add assignment due date to submission header
1 parent 7871d3a commit afb5fcd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tin/apps/submissions/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def file_header(self):
156156
"{0}Period: {3}",
157157
"{0}Student: {4} ({5})",
158158
"{0}Date: {6}",
159-
"{0}Grade: {7}",
159+
"{0}Due Date: {7}",
160+
"{0}Grade: {8}",
160161
)
161162
)
162163

@@ -168,6 +169,7 @@ def file_header(self):
168169
self.student.full_name,
169170
self.student.username,
170171
timezone.localtime(self.date_submitted).strftime("%D (%B %e, %Y) %-I:%M %P"),
172+
timezone.localtime(self.assignment.due).strftime("%D (%B %e, %Y) %-I:%M %P"),
171173
self.formatted_grade,
172174
)
173175

0 commit comments

Comments
 (0)