Merge branch 'master' of gitlab.com:lilcity/backend into hotfix/LIL-686

remotes/origin/hotfix/LIL-691
gzbender 7 years ago
commit 0ba6ea4c4f
  1. 6
      apps/course/models.py
  2. 2
      apps/course/templates/course/course.html

@ -175,9 +175,9 @@ class Course(BaseModel, DeactivatedMixin):
shuffle(other)
return featured + other
else:
all = list(qs)
shuffle(all)
return all
all_courses = list(qs)
shuffle(all_courses)
return all_courses
class Category(models.Model):

@ -26,7 +26,7 @@
<div class="go__title">Вернуться</div>
</a>
{% if has_full_access %}
<a class="go__btn btn" href="{% url 'course_edit' course.id %}">Редактировать</a>
<a class="go__btn btn btn_stroke" href="{% url 'course_edit' course.id %}">Редактировать</a>
{% endif %}
{% if course.author != request.user and not paid and course.price %}
<a href="#"

Loading…
Cancel
Save