fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update email for teachers
[edumed.git]
/
stage2
/
models.py
diff --git
a/stage2/models.py
b/stage2/models.py
index
972376a
..
924b153
100644
(file)
--- a/
stage2/models.py
+++ b/
stage2/models.py
@@
-121,7
+121,7
@@
class Answer(models.Model):
marks = self.mark_set.all()
if len(marks) < 2:
return None
marks = self.mark_set.all()
if len(marks) < 2:
return None
- return self.mark_set.aggregate(
models.Avg('points'))
+ return self.mark_set.aggregate(
avg=models.Avg('points'))['avg']
def attachment_path(instance, filename):
def attachment_path(instance, filename):