From 59290cbd7101f1bf75d49987c9ae77ccd6e17f07 Mon Sep 17 00:00:00 2001 From: dorme Date: Thu, 9 Sep 2021 14:11:55 +0100 Subject: [PATCH] Allow submitted assignments to be edited by Admins - make status writable. --- controllers/marking_reports.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/marking_reports.py b/controllers/marking_reports.py index 8e9bc29..75e4066 100644 --- a/controllers/marking_reports.py +++ b/controllers/marking_reports.py @@ -487,7 +487,8 @@ def edit_assignment(): """Edit assignment details This controller allows an administrator to edit the details of - an assignment - the marker/role/etc. + an assignment - the marker/role/etc. The contents of + db.assignments.assignment_data should be edited via view_assignment. """ db.assignments.assignment_data.readable = False @@ -516,6 +517,8 @@ def edit_assignment(): # else: # readonly = False + # Allow admins to change the status + db.assignments.status.writable = True readonly = False form = SQLFORM(db.assignments,