Skip to content

Commit 55626b8

Browse files
committed
Don't list documents replaced by other documents in the IESG Status list at /idtracker/status/.
- Legacy-Id: 5625
1 parent f71d404 commit 55626b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/idtracker/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def state_desc(request, state, is_substate=0):
2929

3030
def status(request):
3131
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
32-
drafts = list(IDInternal.objects.filter(states__type="draft-iesg").exclude(states__type="draft-iesg", states__slug__in=('pub', 'dead', 'watching', 'rfcqueue')).distinct().order_by('states__order'))
32+
drafts = IDInternal.objects.filter(states__type="draft-iesg").exclude(states__type="draft-iesg", states__slug__in=('pub', 'dead', 'watching', 'rfcqueue')).distinct().order_by('states__order')
33+
drafts = [ d for d in drafts if not d.replaced_by ]
3334
drafts.sort(key=lambda d: (d.cur_state_id, d.status_date or datetime.date.min, d.b_sent_date or datetime.date.min))
3435
# sadly we can't use the generic view because it only works with a queryset...
3536
return render_to_response('idtracker/status_of_items.html', dict(object_list=drafts, title="IESG Status of Items"), context_instance=RequestContext(request))

0 commit comments

Comments
 (0)