Browse Source

Set relationship between convo and message

Alec Nikolas Reiter 7 years ago
parent
commit
51a854c08d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/message/models.py

+ 1 - 1
flaskbb/message/models.py

@@ -103,7 +103,7 @@ class Message(db.Model, CRUDMixin):
                              belongs to.
         """
         if conversation is not None:
-            self.conversation_id = conversation.id
+            self.conversation = conversation
             conversation.date_modified = time_utcnow()
             self.date_created = time_utcnow()