fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zmiana kolejnosci w menu
[edumed.git]
/
catalogue
/
models.py
diff --git
a/catalogue/models.py
b/catalogue/models.py
index
edb82f0
..
85f0af0
100644
(file)
--- 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"]
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'), \
+ assert self.type in ('appendix', 'course', 'synthetic', 'project'
, 'added', 'added-var'
), \
u"Unknown lesson type: %s" % self.type
self.save()
u"Unknown lesson type: %s" % self.type
self.save()