Add allow_late_submissions toggle to assignments
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user