Commit f092fc15 authored by Paul Angelo Sy's avatar Paul Angelo Sy

Cleaned up views.py for assignments

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