diff --git a/apps/payment/templates/payment/payment_success.html b/apps/payment/templates/payment/payment_success.html index 4d22d6fa..53d946d4 100644 --- a/apps/payment/templates/payment/payment_success.html +++ b/apps/payment/templates/payment/payment_success.html @@ -2,10 +2,17 @@
+ {% if school %} +
Вы успешно приобрели школу!
+ + {% else %}
Вы успешно приобрели курс!
+ {% endif %}
diff --git a/apps/payment/views.py b/apps/payment/views.py index 90e3a560..bb44f02f 100644 --- a/apps/payment/views.py +++ b/apps/payment/views.py @@ -38,6 +38,9 @@ class CourseBuySuccessView(TemplateView): class SchoolBuySuccessView(TemplateView): template_name = 'payment/payment_success.html' + def get(self, request, pk=None, *args, **kwargs): + return self.render_to_response(context={'school': True}) + @method_decorator(login_required, name='dispatch') class CourseBuyView(TemplateView):