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:
f99a486
)
apropriate glossary in level package
author
Jan Szejko
<janek37@gmail.com>
Fri, 3 Mar 2017 15:06:29 +0000
(16:06 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 3 Mar 2017 15:06:29 +0000
(16:06 +0100)
curriculum/models.py
patch
|
blob
|
history
diff --git
a/curriculum/models.py
b/curriculum/models.py
index
1d77d4f
..
4153f1b
100644
(file)
--- 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'):
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()
prefix = '%s/' % lesson.slug
lesson.add_to_zip(zipf, student, prefix)
zipf.close()