From 68859fcc7e562dd9caa01ca1896bee8c76359e13 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 3 Mar 2017 16:06:29 +0100 Subject: [PATCH 1/1] apropriate glossary in level package --- curriculum/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/curriculum/models.py b/curriculum/models.py index 1d77d4f..4153f1b 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -118,6 +118,13 @@ class Level(models.Model): lesson.add_to_zip(zipf, student, prefix) # Add all appendix lessons, from all levels. for lesson in Lesson.objects.filter(type='appendix'): + # ugly fix + if self.slug in ('przedszkole', 'sp1-3', 'sp4-6'): + if lesson.slug == 'slowniczek': + continue + else: + if lesson.slug == 'slowniczek-sp': + continue prefix = '%s/' % lesson.slug lesson.add_to_zip(zipf, student, prefix) zipf.close() -- 2.20.1