fix: correct stream document view (#6677)
* fix: correct stream document view * fix: better filtering for stream view
This commit is contained in:
parent
ab3864e07a
commit
b760248cc0
|
@ -103,7 +103,6 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
|
|||
if d.type_id == "draft":
|
||||
state_slug = d.get_state_slug()
|
||||
if state_slug == "rfc":
|
||||
log.unreachable("2023-11-15")
|
||||
d.search_heading = "RFC"
|
||||
d.expirable = False
|
||||
elif state_slug in ("ietf-rm", "auth-rm"):
|
||||
|
|
|
@ -1276,7 +1276,10 @@ def stream_documents(request, acronym):
|
|||
editable = has_role(request.user, "Secretariat") or group.has_role(request.user, "chair")
|
||||
stream = StreamName.objects.get(slug=acronym)
|
||||
|
||||
qs = Document.objects.filter(states__type="draft", states__slug__in=["active", "rfc"], stream=acronym)
|
||||
qs = Document.objects.filter(stream=acronym).filter(
|
||||
Q(type_id="draft", states__type="draft", states__slug="active")
|
||||
| Q(type_id="rfc")
|
||||
)
|
||||
docs, meta = prepare_document_table(request, qs, max_results=1000)
|
||||
return render(request, 'group/stream_documents.html', {'stream':stream, 'docs':docs, 'meta':meta, 'editable':editable } )
|
||||
|
||||
|
|
Loading…
Reference in a new issue