diff --git a/apps/course/models.py b/apps/course/models.py index 39eed28e..dac438db 100644 --- a/apps/course/models.py +++ b/apps/course/models.py @@ -4,7 +4,6 @@ from uuid import uuid4 from django.db import models from django.core.exceptions import ValidationError from django.utils import timezone -from django.utils.text import slugify from django.utils.timezone import now from django.contrib.auth import get_user_model from django.urls import reverse_lazy @@ -13,8 +12,6 @@ from polymorphic_tree.models import PolymorphicMPTTModel, PolymorphicTreeForeign from project.mixins import BaseModel, DeactivatedMixin -from .manager import CategoryQuerySet - from apps.content.models import ImageObject, Gallery, Video, ContestWork User = get_user_model() diff --git a/apps/course/templates/course/course_only_lessons.html b/apps/course/templates/course/course_only_lessons.html index 234d93ca..9efe873c 100644 --- a/apps/course/templates/course/course_only_lessons.html +++ b/apps/course/templates/course/course_only_lessons.html @@ -184,7 +184,7 @@
+ src="{% if lesson.cover %}{{ lesson.cover.image_thumbnail.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %}">
+ src="{% if lesson.cover %}{{ lesson.cover.image_thumbnail.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %}">