-
- xml_file = models.FileField(upload_to="catalogue/lesson/xml",
- null=True, blank=True) # FIXME: slug in paths
- html_file = models.FileField(upload_to="catalogue/lesson/html",
- null=True, blank=True)
- package = models.FileField(upload_to="catalogue/lesson/pack",
- null=True, blank=True)
- student_package = models.FileField(upload_to="catalogue/lesson/student_pack",
- null=True, blank=True)
- pdf = models.FileField(upload_to="catalogue/lesson/pdf",
- null=True, blank=True)
- student_pdf = models.FileField(upload_to="catalogue/lesson/student_pdf",
- null=True, blank=True)
+ curriculum_courses = models.ManyToManyField(CurriculumCourse, blank=True)
+ description = models.TextField(null=True, blank=True)
+
+ xml_file = models.FileField(
+ upload_to="catalogue/lesson/xml",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ html_file = models.FileField(
+ upload_to="catalogue/lesson/html",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ package = models.FileField(
+ upload_to="catalogue/lesson/pack",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ student_package = models.FileField(
+ upload_to="catalogue/lesson/student_pack",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ pdf = models.FileField(
+ upload_to="catalogue/lesson/pdf",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ student_pdf = models.FileField(
+ upload_to="catalogue/lesson/student_pdf",
+ null=True, blank=True, max_length=255, storage=bofh_storage)
+ weasy_pdf = models.FileField(
+ upload_to="catalogue/lesson/weasy",
+ null=True, blank=True, max_length=255, storage=bofh_storage)