diff --git a/apps/course/views.py b/apps/course/views.py index 8cff720a..93d7f11e 100644 --- a/apps/course/views.py +++ b/apps/course/views.py @@ -199,8 +199,8 @@ class CourseView(DetailView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) + context['next'] = self.request.GET.get('next', None) if self.request.user.is_authenticated: - context['next'] = self.request.GET.get('next', None) context['paid'] = self.object.payments.filter( user=self.request.user, status__in=[ diff --git a/apps/user/templates/user/profile.html b/apps/user/templates/user/profile.html index 44ddb48c..d69c52e5 100644 --- a/apps/user/templates/user/profile.html +++ b/apps/user/templates/user/profile.html @@ -137,7 +137,9 @@