cleanup courses.views
authorSeth Woodworth <seth@sethish.com>
Thu, 18 Apr 2013 17:36:13 +0000 (13:36 -0400)
committerSeth Woodworth <seth@sethish.com>
Thu, 18 Apr 2013 17:36:13 +0000 (13:36 -0400)
karmaworld/apps/courses/views.py

index f40382eac92b9fb2579a94a08f298e4dcf94da98..9964f9f3093fffc293ee95ad3165ca809b08d034 100644 (file)
@@ -25,11 +25,8 @@ class CourseListView(ListView, ModelFormMixin, ProcessFormView):
 
     def get_context_data(self, **kwargs):
         """ Add the CourseForm to ListView context """
-        print "CourseListView context data getting"
-        # self.get() populates the object_list, fix this for form POST and redirect
         # get the original context
         context = super(CourseListView, self).get_context_data(**kwargs)
-        print "returned context and getting course_form"
         context['course_form'] = kwargs.get('course_form', CourseForm())
         if context['course_form'].errors:
             # if there was an error in the form
@@ -37,7 +34,6 @@ class CourseListView(ListView, ModelFormMixin, ProcessFormView):
 
         return context
 
-
     def get_success_url(self):
         """ On form submission success, redirect to what url """
         return u'/{school_slug}/{course_slug}'.format(