Fixed an issue where simplified sorting of DocEvents resulted in some ballot icons not being shown on the IESG agenda documents page.
- Legacy-Id: 15046
This commit is contained in:
parent
5733db6c75
commit
1591b3ebd2
|
@ -64,7 +64,7 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
|
|||
doc_dict[e.doc_id].latest_event_cache[e.type] = e
|
||||
|
||||
seen = set()
|
||||
for e in BallotDocEvent.objects.filter(doc__in=doc_ids, type__in=('created_ballot', 'closed_ballot')).order_by('-time'):
|
||||
for e in BallotDocEvent.objects.filter(doc__in=doc_ids, type__in=('created_ballot', 'closed_ballot')).order_by('-time','-id'):
|
||||
if not e.doc_id in seen:
|
||||
doc_dict[e.doc_id].ballot = e if e.type == 'created_ballot' else None
|
||||
seen.add(e.doc_id)
|
||||
|
|
Loading…
Reference in a new issue