From: Seth Woodworth Date: Thu, 18 Apr 2013 17:36:13 +0000 (-0400) Subject: cleanup courses.views X-Git-Tag: release-20150131~448 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=497ff457d39d486bde048277b2c4eb841cb27f98;p=oweals%2Fkarmaworld.git cleanup courses.views --- 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(