Skip to content

Commit e6121ac

Browse files
committed
Fixed a bad filter argument found by the Django 1.8 code.
- Legacy-Id: 12408
1 parent 53d68af commit e6121ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def relations_that(self, relationship):
277277
if isinstance(self, Document):
278278
return RelatedDocument.objects.filter(target__document=self, relationship__in=relationship).select_related('source')
279279
elif isinstance(self, DocHistory):
280-
return RelatedDocHistory.objects.filter(target__document=self, relationship__in=relationship).select_related('source')
280+
return RelatedDocHistory.objects.filter(target__document=self.doc, relationship__in=relationship).select_related('source')
281281
else:
282282
return RelatedDocument.objects.none()
283283

0 commit comments

Comments
 (0)