Commit 800c4172 authored by Paul Angelo Sy's avatar Paul Angelo Sy

Merge branch 'sy/assignments'

parents 3f5cbf4c f092fc15
...@@ -3,10 +3,7 @@ from assignments.models import Assignment, Course ...@@ -3,10 +3,7 @@ from assignments.models import Assignment, Course
# Create your views here. # Create your views here.
def index(request): def index(request):
assignmentCount = Assignment.objects.all().count()
assignmentOutput = "Assignments: <br/><br/>" assignmentOutput = "Assignments: <br/><br/>"
n = assignmentCount
for n in Assignment.objects.all(): for n in Assignment.objects.all():
assignmentOutput += ("Assignment Name: " + str(n.name) + "<br/>") assignmentOutput += ("Assignment Name: " + str(n.name) + "<br/>")
assignmentOutput += ("Description: " + n.description + "<br/>") assignmentOutput += ("Description: " + n.description + "<br/>")
......
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