Commit fce4911f authored by Joan Denise Nocos's avatar Joan Denise Nocos

fix: resolved issues with assignments view

parent 7ad2ce8d
...@@ -3,10 +3,10 @@ from assignments.models import Assignment, Course ...@@ -3,10 +3,10 @@ from assignments.models import Assignment, Course
# Create your views here. # Create your views here.
def index(request): def index(request):
assignments_view = "ASSIGNMENTS: " assignments_view = "ASSIGNMENTS: <br>"
schoolwork = Assignment.objects.all() schoolwork = Assignment.objects.all()
for assignment in schoolwork: for assignment in schoolwork:
assignments_view += "Assignment Name: {}<br>Description: {}<br>Perfect Score: {}<br>Passing Score: {}<br>Course/Section: {} {} {}<br><br>" assignments_view += "Assignment Name: {}<br>Description: {}<br>Perfect Score: {}<br>Passing Score: {}<br>Course/Section: {} {} {}<br><br>".\
format(assignment.name, format(assignment.name,
assignment.description, assignment.description,
assignment.max_points, assignment.max_points,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment