From e4657797146203338f2e2656bb8b16453b90bf56 Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 31 Jul 2018 15:27:45 +0500 Subject: [PATCH] =?UTF-8?q?FIX=20LIL-572=20=D0=9D=D0=B5=D0=B7=D0=B0=D1=80?= =?UTF-8?q?=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B8=D0=B4=D0=B8=D1=82=20=D0=BA=D1=83=D1=80=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/course/views.py | 2 +- apps/user/templates/user/profile.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 @@
Нет опубликованных курсов!
+ {% if owner %} Добавить курс + {% endif %}