X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e785f561e82f8230697ffe100139eb1270eb1311..64f70211103c21b78b2579e2ca78d6b549bb92bf:/catalogue/models.py diff --git a/catalogue/models.py b/catalogue/models.py index e291c42..85f0af0 100644 --- a/catalogue/models.py +++ b/catalogue/models.py @@ -151,7 +151,7 @@ class Lesson(models.Model): wldoc = WLDocument.from_file(self.xml_file.path) self.dc = wldoc.book_info.to_dict() self.type = self.dc["type"] - assert self.type in ('appendix', 'course', 'synthetic', 'project', 'added'), \ + assert self.type in ('appendix', 'course', 'synthetic', 'project', 'added', 'added-var'), \ u"Unknown lesson type: %s" % self.type self.save()