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'):
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()