X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/118fd7ac41a586001b4c8f45c149731cc9a2e586..44e5932c3ed1b283b1b7ed12ff614b2cabdcddd0:/curriculum/models.py 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)