X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/196e0116ea78f78b2eeab0e76b8a4d79d5ded9aa..d902ba6fd8f909be4f75d300bd0eda98f9ba04ed:/curriculum/models.py?ds=sidebyside diff --git a/curriculum/models.py b/curriculum/models.py index cfe5ffe..1d77d4f 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -109,6 +109,7 @@ class Level(models.Model): prefix = 'Skrocony kurs/%d %s/' % (i, lesson.slug) lesson.add_to_zip(zipf, student, prefix) for c, (section, clessons) in enumerate(lessons['course'].items()): + assert section, clessons for i, lesson in enumerate(clessons): prefix = 'Pelny kurs/%d %s/%d %s/' % (c, section.slug, i, lesson.slug) lesson.add_to_zip(zipf, student, prefix)