Add allow_late_submissions toggle to assignments

This commit is contained in:
Dmitry Belan
2026-09-28 21:18:34 +03:00
parent bc2866280b
commit ece2e51b04
4 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ def assignment_detail(request, pk):
if assignment.deadline and now > assignment.deadline:
is_late = True
# can_submit = False # Allow late submissions
if not assignment.allow_late_submissions:
can_submit = False
if assignment.time_limit:
if not submission: