From: Radek Czajka Date: Mon, 3 Feb 2014 11:43:37 +0000 (+0100) Subject: A fix, and a video. X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/98fcf7a06583d1ac8ec50b67fb1c0889b3b6d6a7?ds=sidebyside;hp=8f939c57adbcfa3bb6f2ab9625881495140c4501 A fix, and a video. --- diff --git a/curriculum/models.py b/curriculum/models.py index b4d8ac4..9da530d 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -92,13 +92,13 @@ class Level(models.Model): from StringIO import StringIO import zipfile from django.core.files.base import ContentFile - from catalogue.templatetags.catalogue_tags import section_box + from catalogue.templatetags.catalogue_tags import level_box from catalogue.models import Lesson buff = StringIO() zipf = zipfile.ZipFile(buff, 'w', zipfile.ZIP_STORED) - lessons = section_box(self)['lessons'] + lessons = level_box(self)['lessons'] for i, lesson in enumerate(lessons['synthetic']): prefix = 'Skrocony kurs/%d %s/' % (i, lesson.slug) lesson.add_to_zip(zipf, student, prefix) diff --git a/edumed/templates/home.html b/edumed/templates/home.html index ce81ed9..d96e710 100755 --- a/edumed/templates/home.html +++ b/edumed/templates/home.html @@ -30,7 +30,7 @@

Zobacz, jak przeprowadzili je inni.

-{# #} +