X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/ea300f6c03d47f6c17dd7721b8d6690489af79da..0f6bc18f9d44b3286abb04510c094f75f011c227:/curriculum/models.py?ds=inline diff --git a/curriculum/models.py b/curriculum/models.py index b4d8ac4..b8cd81d 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) @@ -107,7 +107,7 @@ class Level(models.Model): prefix = 'Pelny kurs/%d %s/%d %s/' % (c, section.slug, i, lesson.slug) lesson.add_to_zip(zipf, student, prefix) for i, lesson in enumerate(lessons['project']): - prefix = 'Kurs skrocony/%d %s/' % (i, lesson.slug) + prefix = 'Projekty/%d %s/' % (i, lesson.slug) lesson.add_to_zip(zipf, student, prefix) # Add all appendix lessons, from all levels. for lesson in Lesson.objects.exclude(type__in=('synthetic', 'course', 'project')):