fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for Uporzadkuj.
[edumed.git]
/
wtem
/
forms.py
diff --git
a/wtem/forms.py
b/wtem/forms.py
index
21e2cf2
..
fcce303
100644
(file)
--- a/
wtem/forms.py
+++ b/
wtem/forms.py
@@
-25,7
+25,7
@@
class WTEMForm(forms.ModelForm):
try:
attachment = Attachment.objects.get(submission = submission, exercise_id = exercise_id)
except Attachment.DoesNotExist:
try:
attachment = Attachment.objects.get(submission = submission, exercise_id = exercise_id)
except Attachment.DoesNotExist:
- attachment = Attachment(
f
submission = submission, exercise_id = exercise_id)
+ attachment = Attachment(submission = submission, exercise_id = exercise_id)
attachment.file = file
attachment.save()
attachment.file = file
attachment.save()