fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let the annoying commence.
[edumed.git]
/
wtem
/
admin.py
diff --git
a/wtem/admin.py
b/wtem/admin.py
index
45ebece
..
d4b6682
100644
(file)
--- a/
wtem/admin.py
+++ b/
wtem/admin.py
@@
-32,12
+32,12
@@
class AttachmentWidget(forms.Widget):
a_tag = '<a href="%s">%s</a>' % (value, value)
else:
a_tag = 'brak'
a_tag = '<a href="%s">%s</a>' % (value, value)
else:
a_tag = 'brak'
- return mark_safe(('<input type="hidden" name="%s" value="%s"/>'
+ a_tag) % (name, value)
)
+ return mark_safe(('<input type="hidden" name="%s" value="%s"/>'
% (name, value)) + a_tag
)
class SubmissionFormBase(forms.ModelForm):
class Meta:
model = Submission
class SubmissionFormBase(forms.ModelForm):
class Meta:
model = Submission
- exclude = ('answers', 'marks', 'contact') + readonly_fields
+ exclude = ('answers', 'marks', 'contact'
, 'end_time'
) + readonly_fields
def get_open_answer(answers, exercise):
def get_open_answer(answers, exercise):