From: Radek Czajka Date: Thu, 14 Feb 2013 16:12:28 +0000 (+0100) Subject: fix X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/2918dd706fe0ce57e0e25288632a5b736bc60a36?hp=e29c56b2e73320e58b273a5eb15ad0c90e32cf0c fix --- 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 ""))