fix: Deduplicate referenced_by (#6820)

Fixes #6808
This commit is contained in:
Lars Eggert 2023-12-21 00:36:55 +02:00 committed by GitHub
parent 4c7be64e96
commit db8fba486b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -649,7 +649,7 @@ class DocumentInfo(models.Model):
source__states__slug="active",
)
| models.Q(source__type__slug="rfc")
)
).distinct()
def referenced_by_rfcs(self):
"""Get refs to this doc from RFCs"""