diff --git a/src/communication/models.py b/src/communication/models.py index a49c088..c5d4985 100644 --- a/src/communication/models.py +++ b/src/communication/models.py @@ -18,12 +18,12 @@ class Message(Markdownizable): """ sender = models.ForeignKey( - User, on_delete=models.CASCADE, related_name="have_write" + User, on_delete=models.CASCADE, related_name="sent_messages" ) written_at = models.DateTimeField( auto_now_add=True, verbose_name="Date of writing" ) - recipient = models.ForeignKey(User, on_delete=models.CASCADE, related_name="have_read") + recipient = models.ForeignKey(User, on_delete=models.CASCADE, related_name="received_messages") read_at = models.DateTimeField( auto_now=True, verbose_name="Date of reading" )