Skip to content

Commit 0bd701b

Browse files
committed
ignore responses to non questiongroup question in volunteer progress
These should never be answered but sometimes automated scripts get things wrong
1 parent fc71341 commit 0bd701b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crowdsourcer/views/progress.py

+1
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def get_context_data(self, **kwargs):
290290
num_responses=Subquery(
291291
Response.objects.filter(
292292
question__section=section,
293+
question__questiongroup=OuterRef("questiongroup"),
293294
authority=OuterRef("pk"),
294295
response_type=rt,
295296
)

0 commit comments

Comments
 (0)