fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
layout fix for info
[edumed.git]
/
catalogue
/
models.py
diff --git
a/catalogue/models.py
b/catalogue/models.py
index
d052d67
..
c684ab5
100644
(file)
--- a/
catalogue/models.py
+++ b/
catalogue/models.py
@@
-180,6
+180,10
@@
class Lesson(models.Model):
if pdf:
zipf.write(pdf.path,
"%s%s%s.pdf" % (prefix, self.slug, "_student" if student else ""))
if pdf:
zipf.write(pdf.path,
"%s%s%s.pdf" % (prefix, self.slug, "_student" if student else ""))
+ for attachment in self.attachment_set.all():
+ zipf.write(attachment.file.path,
+ u"%smaterialy/%s.%s" % (prefix, attachment.slug, attachment.ext))
+
def build_package(self, student=False):
def build_package(self, student=False):