diff --git a/apps/course/templates/course/course_edit.html b/apps/course/templates/course/course_edit.html index e8aecf05..ee3143dd 100644 --- a/apps/course/templates/course/course_edit.html +++ b/apps/course/templates/course/course_edit.html @@ -2,9 +2,9 @@ {% load static %} {% block title %} {% if object %} - Редактирование {% if live %}стрима{% else %}курса{% endif %} {{ object.title }} + Редактирование {% if live == 'true' %}стрима{% else %}курса{% endif %} {{ object.title }} {% else %} - Создание {% if live %}стрима{% else %}курса{% endif %} + Создание {% if live == 'true' %}стрима{% else %}курса{% endif %} {% endif %} {% endblock title%} {% block content %} diff --git a/apps/course/views.py b/apps/course/views.py index a8ead7cf..4d3a9a67 100644 --- a/apps/course/views.py +++ b/apps/course/views.py @@ -173,6 +173,7 @@ class CourseEditView(TemplateView): def get_context_data(self): context = super().get_context_data() + context['live'] = 'false' context['object'] = self.object return context