← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~twom/launchpad:stormy-questions-about-tests into launchpad:master

 

Tom Wardill has proposed merging ~twom/launchpad:stormy-questions-about-tests into launchpad:master.

Commit message:
Different ReferenceSet implementation

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/394553
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/launchpad:stormy-questions-about-tests into launchpad:master.
diff --git a/lib/lp/answers/model/question.py b/lib/lp/answers/model/question.py
index 8015c6f..9cfaa05 100644
--- a/lib/lp/answers/model/question.py
+++ b/lib/lp/answers/model/question.py
@@ -235,7 +235,8 @@ class Question(SQLBase, BugLinkTargetMixin):
     _messages = ReferenceSet(
         'id', 'QuestionMessage.question_id', order_by='QuestionMessage.id')
     reopenings = ReferenceSet(
-        'id', 'QuestionReopening.question_id', order_by='datecreated')
+        'id', 'QuestionReopening.question_id',
+        'Question.id', 'QuestionReopening.question_id', order_by='datecreated')
 
     @property
     def messages(self):