From 2918dd706fe0ce57e0e25288632a5b736bc60a36 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 14 Feb 2013 17:12:28 +0100 Subject: [PATCH] fix --- catalogue/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/models.py b/catalogue/models.py index 6e615a8..5d9b121 100644 --- a/catalogue/models.py +++ b/catalogue/models.py @@ -177,7 +177,7 @@ class Lesson(models.Model): "%spliki-zrodlowe/%s.xml" % (prefix, self.slug)) pdf = self.student_pdf if student else self.pdf if pdf: - zipf.write(self.xml_file.path, + zipf.write(pdf.path, "%s%s%s.pdf" % (prefix, self.slug, "_student" if student else "")) -- 2.20.1