Merged in [16937] from rjsparks@nostrum.com:

Only show a blocked document once in the set of blocked documents on an ADs document page. Fixes .
 - Legacy-Id: 16938
Note: SVN reference [16937] has been migrated to Git commit 8f1e9990cf
This commit is contained in:
Henrik Levkowetz 2019-10-29 15:03:01 +00:00
parent 156b492d84
commit 63484a8cb5

View file

@ -425,7 +425,7 @@ def docs_for_ad(request, name):
Q(states__type__in=("statchg", "conflrev"),
states__slug__in=("iesgeval", "defer")),
docevent__ballotpositiondocevent__pos__blocking=True,
docevent__ballotpositiondocevent__ad=ad)
docevent__ballotpositiondocevent__ad=ad).distinct()
for doc in possible_docs:
ballot = doc.active_ballot()
if not ballot: