Skip to content

Commit

Permalink
Avoid fetching unnecessary grading data
Browse files Browse the repository at this point in the history
  • Loading branch information
ttsirkia committed Sep 16, 2018
1 parent b95a8cc commit e4ba840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercise/cache/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def r_augment(children):
if user.is_authenticated():
for submission in user.userprofile.submissions\
.exclude_errors()\
.defer('feedback')\
.defer('grading_data', 'feedback')\
.filter(exercise__course_module__course_instance=instance):
#.prefetch_related("notifications"): breaks things
try:
Expand Down

0 comments on commit e4ba840

Please sign in to comment.