From 92ea5a6a89b133d96e36cc7261af8ea872812b8c Mon Sep 17 00:00:00 2001 From: Robert Sparks <rjsparks@nostrum.com> Date: Wed, 13 Sep 2023 15:46:21 -0500 Subject: [PATCH] fix: correct cache variable assignment --- ietf/doc/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 075a34753..7d3286b9a 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -674,7 +674,7 @@ class DocumentInfo(models.Model): def came_from_draft(self): if not hasattr(self, "_cached_came_from_draft"): doc = self if isinstance(self, Document) else self.doc - self.cached_came_from_draft = next(iter(doc.related_that("became_rfc")), None) + self._cached_came_from_draft = next(iter(doc.related_that("became_rfc")), None) return self._cached_came_from_draft class Meta: