X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/6c9978c5bf8b1ef20871557c22b8b02df647d700..84e0a92d17b4a782dee2c4b257ee0e5f66be9af6:/curriculum/models.py 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()