Skip to content

Commit dca5c9c

Browse files
committed
Fixed a bug in a queryset argument in all_id_text(); __in was not used, but the value given was a multi-row queryset.
- Legacy-Id: 12780
1 parent e941296 commit dca5c9c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/idindex/index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def add_line(f1, f2, f3, f4):
4444

4545
inactive_states = ["pub", "watching", "dead"]
4646

47-
in_iesg_process = all_ids.exclude(states=State.objects.filter(type="draft", slug__in=["rfc","repl"])).filter(states__in=list(State.objects.filter(type="draft-iesg").exclude(slug__in=inactive_states))).only("name", "rev")
47+
excludes = list(State.objects.filter(type="draft", slug__in=["rfc","repl"]))
48+
includes = list(State.objects.filter(type="draft-iesg").exclude(slug__in=inactive_states))
49+
in_iesg_process = all_ids.exclude(states__in=excludes).filter(states__in=includes).only("name", "rev")
4850

4951
# handle those actively in the IESG process
5052
for d in in_iesg_process:

0 commit comments

Comments
 (0)