fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow for manual marking of question of type "file_upload"
[edumed.git]
/
wtem
/
forms.py
diff --git
a/wtem/forms.py
b/wtem/forms.py
index
61e1d7c
..
9555c72
100644
(file)
--- a/
wtem/forms.py
+++ b/
wtem/forms.py
@@
-22,7
+22,7
@@
class WTEMForm(forms.ModelForm):
for exercise in exercises:
if exercise['type'] != 'file_upload':
continue
for exercise in exercises:
if exercise['type'] != 'file_upload':
continue
- self.fields['attachment_
' + exercise['name']
] = forms.FileField(required = False)
+ self.fields['attachment_
for_' + str(exercise['id'])
] = forms.FileField(required = False)
def save(self):
submission = super(WTEMForm, self).save()
def save(self):
submission = super(WTEMForm, self).save()