From 497ff457d39d486bde048277b2c4eb841cb27f98 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Thu, 18 Apr 2013 13:36:13 -0400 Subject: [PATCH] cleanup courses.views --- karmaworld/apps/courses/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index f40382e..9964f9f 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -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( -- 2.25.1