X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/739f5e011528ab0651f67be7e40daf8e48cb3764..874ee72f939db21f84db8d3dcbddd2cf4f889a1e:/curriculum/models.py 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()