From 6d2c0cd3cd888b1976fe5d7d4f9a9d0d96b1fa58 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Fri, 4 May 2018 15:53:07 +0300 Subject: [PATCH] Fix course edit title --- apps/course/templates/course/course_edit.html | 4 ++-- apps/course/views.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/course/templates/course/course_edit.html b/apps/course/templates/course/course_edit.html index 8d875576..e8aecf05 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 not live %}курса{% else %}стрима{% endif %} {{ object.title }} + Редактирование {% if live %}стрима{% else %}курса{% endif %} {{ object.title }} {% else %} - Создание {% if not live %}курса{% else %}стрима{% endif %} + Создание {% if live %}стрима{% else %}курса{% endif %} {% endif %} {% endblock title%} {% block content %} diff --git a/apps/course/views.py b/apps/course/views.py index 4d3a9a67..a8ead7cf 100644 --- a/apps/course/views.py +++ b/apps/course/views.py @@ -173,7 +173,6 @@ class CourseEditView(TemplateView): def get_context_data(self): context = super().get_context_data() - context['live'] = 'false' context['object'] = self.object return context