Commit 55d52808 authored by Bruno Martin's avatar Bruno Martin
Browse files

fix url names

parent dacefd6e
......@@ -113,10 +113,10 @@ class CourseCreateView(views.SuperuserRequiredMixin, View, ModelFormMixin):
return super(CourseCreateView, self).form_valid(form)
def form_invalid(self, form):
return HttpResponseRedirect(reverse_lazy('administration.courses'))
return HttpResponseRedirect(reverse_lazy('courses_legacy:administration.courses'))
def get_success_url(self):
return reverse_lazy('administration.edit_course', kwargs={'course_id': self.object.id})
return reverse_lazy('courses_legacy:administration.edit_course', kwargs={'course_id': self.object.id})
class ExportCourseView(views.SuperuserRequiredMixin, View):
......@@ -290,7 +290,7 @@ class ImportCourseView(APIView):
# Save all changes in the new imported course
course_obj.save()
return Response({'new_course_url': reverse_lazy('administration.edit_course',
return Response({'new_course_url': reverse_lazy('courses_legacy:administration.edit_course',
kwargs={'course_id': course_obj.id}),
})
else:
......
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