@@ -216,7 +216,7 @@ def build_document_stats_url(stats_type_override=Ellipsis, get_overrides=None):
216216 # filter documents
217217 document_filters = Q (type__in = ["draft" ,"rfc" ]) # TODO - review lots of "rfc is a draft" assumptions below
218218
219- rfc_state = State .objects .get (type = "draft " , slug = "rfc " )
219+ rfc_state = State .objects .get (type = "rfc " , slug = "published " )
220220 if document_type == "rfc" :
221221 document_filters &= Q (states = rfc_state )
222222 elif document_type == "draft" :
@@ -370,7 +370,7 @@ def build_document_stats_url(stats_type_override=Ellipsis, get_overrides=None):
370370 person_filters = Q (documentauthor__document__type = "draft" )
371371
372372 # filter persons
373- rfc_state = State .objects .get (type = "draft " , slug = "rfc " )
373+ rfc_state = State .objects .get (type = "rfc " , slug = "published " )
374374 if document_type == "rfc" :
375375 person_filters &= Q (documentauthor__document__states = rfc_state )
376376 elif document_type == "draft" :
@@ -599,7 +599,7 @@ def build_document_stats_url(stats_type_override=Ellipsis, get_overrides=None):
599599 person_filters = Q (documentauthor__document__type = "draft" )
600600
601601 # filter persons
602- rfc_state = State .objects .get (type = "draft " , slug = "rfc " )
602+ rfc_state = State .objects .get (type = "rfc " , slug = "published " )
603603 if document_type == "rfc" :
604604 person_filters &= Q (documentauthor__document__states = rfc_state )
605605 elif document_type == "draft" :
0 commit comments