- for attachment in self.attachment_set.all():
- zipf.write(attachment.file.path,
- u"%smaterialy/%s.%s" % (prefix, attachment.slug, attachment.ext))
-
-
+ for attachment in self.attachment_set.all():
+ zipf.write(attachment.file.path,
+ u"%smaterialy/%s.%s" % (prefix, attachment.slug, attachment.ext))
+ zipf.write(self.xml_file.path,
+ "%spliki-zrodlowe/%s.xml" % (prefix, self.slug))