fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1de527b
)
last fix in results csv
author
Jan Szejko
<janek37@gmail.com>
Thu, 24 Nov 2016 10:57:18 +0000
(11:57 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 24 Nov 2016 10:57:18 +0000
(11:57 +0100)
wtem/admin.py
patch
|
blob
|
history
diff --git
a/wtem/admin.py
b/wtem/admin.py
index
3608628
..
93fd652
100644
(file)
--- a/
wtem/admin.py
+++ b/
wtem/admin.py
@@
-224,8
+224,9
@@
class SubmissionsSet:
examiners = self.examiners_by_exercise.setdefault(exercise_id, [])
if user not in examiners:
examiners.append(user)
examiners = self.examiners_by_exercise.setdefault(exercise_id, [])
if user not in examiners:
examiners.append(user)
- contact_body = submission.contact.body
- submission.school = '%s %s' % (contact_body['institution'], contact_body['institution_address'])
+ if submission.contact:
+ contact_body = submission.contact.body
+ submission.school = '%s %s' % (contact_body.get('school'), contact_body.get('school_address'))
def report_view(request):
def report_view(request):