Skip to content
Snippets Groups Projects

Studydocs: Always require type and add options.

Open Imported Johannes Zumthurm requested to merge NotSpecial-patch-3 into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
  • We do not wish to allow studydocs without type anymore, so the `type` field is not not nullable and required.
    
    Furthermore, we wish to differentiate between spring and autumn exams for better filtering, so the previous exam type is replaced.
    
    Closes #422
@@ -182,9 +182,9 @@ studydocdomain = {
'type': {
'example': 'cheat sheets',
'type': 'string',
'nullable': True,
'default': None,
'allowed': ['exams', 'oral exams',
'required': True,
'nullable': False,
'allowed': ['spring exams', 'autumn exams', 'oral exams',
'cheat sheets', 'study guides',
'lecture documents', 'exercises'],
'allow_summary': True,
Loading