From 196e0116ea78f78b2eeab0e76b8a4d79d5ded9aa Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 18 May 2016 14:31:52 +0200 Subject: [PATCH 1/1] fix package building (don't add all non-standard lessons) --- curriculum/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/models.py b/curriculum/models.py index 22de956..cfe5ffe 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -116,7 +116,7 @@ class Level(models.Model): 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')): + for lesson in Lesson.objects.filter(type='appendix'): prefix = '%s/' % lesson.slug lesson.add_to_zip(zipf, student, prefix) zipf.close() -- 2.20.1