removing additional context for adding NoteForm to course_detail template, not needed
authorSeth Woodworth <seth@sethish.com>
Thu, 24 Jan 2013 00:10:53 +0000 (19:10 -0500)
committerSeth Woodworth <seth@sethish.com>
Thu, 24 Jan 2013 00:10:53 +0000 (19:10 -0500)
karmaworld/apps/courses/views.py

index 0774cf86dd370ef5fb0b207894bdf80082eb716d..f8fab63090350c58b2350a13ccfb5c114da1d5ea 100644 (file)
@@ -1,12 +1,14 @@
 #!/usr/bin/env python
 # -*- coding:utf8 -*-
 # Copyright (C) 2012  FinalsClub Foundation
+
 from django.views.generic import DetailView
+
 from karmaworld.apps.courses.models import Course
 
 class CourseDetailView(DetailView):
     """ Class-based view for the course html page """
 
+    model = Course
     # name passed to template
     context_object_name = u"course"
-    model = Course