Commit 4dd4782f authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Fixed Assignments/views.py

parent 11f28fcb
...@@ -12,7 +12,7 @@ class MainView(View): ...@@ -12,7 +12,7 @@ class MainView(View):
assignment = Assignment.objects.all().order_by('course') assignment = Assignment.objects.all().order_by('course')
return render(request, 'assignments.html',{ return render(request, 'assignments.html',{
'course': course, 'course': course,
'assignments': assignment, 'assignment': assignment,
}) })
class AssignmentListView(ListView): class AssignmentListView(ListView):
......
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