fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2255b0e
)
fix package building (don't add all non-standard lessons)
author
Jan Szejko
<jan.szejko@gmail.com>
Wed, 18 May 2016 12:31:52 +0000
(14:31 +0200)
committer
Jan Szejko
<jan.szejko@gmail.com>
Wed, 18 May 2016 12:31:52 +0000
(14:31 +0200)
curriculum/models.py
patch
|
blob
|
history
diff --git
a/curriculum/models.py
b/curriculum/models.py
index
22de956
..
cfe5ffe
100644
(file)
--- 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()