From 37f2ac4e8371e3b001f1236b98be95ac3d79a75e Mon Sep 17 00:00:00 2001 From: arielfayol37 Date: Tue, 21 Nov 2023 14:25:32 -0600 Subject: [PATCH] updated assignment due date display on student side --- deimos/templates/deimos/assignment_display.html | 6 +++--- deimos/templates/deimos/course_management.html | 4 ++-- deimos/views.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deimos/templates/deimos/assignment_display.html b/deimos/templates/deimos/assignment_display.html index dee6ba24..54e3ed81 100644 --- a/deimos/templates/deimos/assignment_display.html +++ b/deimos/templates/deimos/assignment_display.html @@ -9,11 +9,11 @@ {% if assignment.assigned_date %}

Assigned on {{ assignment.assigned_date|format_date }}

{% endif %} - {% if assignment.due_date %} -

Due on {{ assignment.due_date|format_date }}

+ {% if ass.due_date %} +

Due on {{ ass.due_date|format_date }}

{% endif %} - {% if status %} + {% if ass.get_status %} diff --git a/deimos/templates/deimos/course_management.html b/deimos/templates/deimos/course_management.html index bf6f1626..9b9b1274 100644 --- a/deimos/templates/deimos/course_management.html +++ b/deimos/templates/deimos/course_management.html @@ -30,8 +30,8 @@

{{course.name}}

diff --git a/deimos/views.py b/deimos/views.py index 2a7d5012..3a3bc3c2 100644 --- a/deimos/views.py +++ b/deimos/views.py @@ -57,7 +57,7 @@ def course_management(request, course_id): if course.name != 'Question Bank': for assignment in assignments: ass, created = AssignmentStudent.objects.get_or_create(assignment= assignment, student=student) - as_statuses.append(ass.get_status()) + as_statuses.append(ass) context = { "student":student,