fix: missed docalias artifact removal. Better use of became_rfc.
This commit is contained in:
parent
70bb48618f
commit
536c1fb6fc
|
@ -354,14 +354,11 @@ class DocumentInfo(models.Model):
|
|||
iesg_state_summary = iesg_state.name
|
||||
if iesg_substate:
|
||||
iesg_state_summary = iesg_state_summary + "::"+"::".join(tag.name for tag in iesg_substate)
|
||||
|
||||
if state.slug == "rfc":
|
||||
rfcs = self.related_that_doc("became_rfc") # should be only one
|
||||
if len(rfcs) > 0:
|
||||
rfc = rfcs[0].document
|
||||
return f"Became RFC {rfc.rfc_number} ({rfc.std_level})"
|
||||
else:
|
||||
return "Became RFC"
|
||||
|
||||
rfc = self.became_rfc()
|
||||
if rfc:
|
||||
return f"Became RFC {rfc.rfc_number} ({rfc.std_level})"
|
||||
|
||||
elif state.slug == "repl":
|
||||
rs = self.related_that("replaces")
|
||||
if rs:
|
||||
|
|
|
@ -148,8 +148,8 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
|
|||
)
|
||||
# TODO - this likely reduces to something even simpler
|
||||
rel_rfcs = {
|
||||
a.document.id: re.sub(r"rfc(\d+)", r"RFC \1", a.name, flags=re.IGNORECASE)
|
||||
for a in Document.objects.filter(
|
||||
d.id: re.sub(r"rfc(\d+)", r"RFC \1", d.name, flags=re.IGNORECASE)
|
||||
for d in Document.objects.filter(
|
||||
type_id="rfc", id__in=[rel.source_id for rel in xed_by]
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue