-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmessage.json
1 lines (1 loc) · 47.1 KB
/
message.json
1
[{"model": "App.message", "pk": 125, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "newmessagefromdjango", "date": "2024-01-11T15:41:23.854Z", "is_read": true}}, {"model": "App.message", "pk": 126, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-11T15:41:23.859Z", "is_read": true}}, {"model": "App.message", "pk": 127, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hii", "date": "2024-01-11T15:44:36.209Z", "is_read": true}}, {"model": "App.message", "pk": 128, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-11T15:44:36.215Z", "is_read": true}}, {"model": "App.message", "pk": 129, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:44:51.187Z", "is_read": true}}, {"model": "App.message", "pk": 130, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:44:51.192Z", "is_read": true}}, {"model": "App.message", "pk": 131, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-11T15:45:24.815Z", "is_read": true}}, {"model": "App.message", "pk": 132, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-11T15:45:24.819Z", "is_read": true}}, {"model": "App.message", "pk": 133, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:45:28.694Z", "is_read": true}}, {"model": "App.message", "pk": 134, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:45:28.700Z", "is_read": true}}, {"model": "App.message", "pk": 135, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hii", "date": "2024-01-11T15:46:21.974Z", "is_read": true}}, {"model": "App.message", "pk": 136, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-11T15:46:21.979Z", "is_read": true}}, {"model": "App.message", "pk": 137, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:46:24.751Z", "is_read": true}}, {"model": "App.message", "pk": 138, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:46:24.756Z", "is_read": true}}, {"model": "App.message", "pk": 139, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:46:33.980Z", "is_read": true}}, {"model": "App.message", "pk": 140, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:46:33.985Z", "is_read": true}}, {"model": "App.message", "pk": 141, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:46:41.634Z", "is_read": true}}, {"model": "App.message", "pk": 142, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:46:41.639Z", "is_read": true}}, {"model": "App.message", "pk": 143, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:46:47.646Z", "is_read": true}}, {"model": "App.message", "pk": 144, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:46:47.652Z", "is_read": true}}, {"model": "App.message", "pk": 145, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hii", "date": "2024-01-11T15:46:55.678Z", "is_read": true}}, {"model": "App.message", "pk": 146, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-11T15:46:55.683Z", "is_read": true}}, {"model": "App.message", "pk": 147, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:47:05.522Z", "is_read": true}}, {"model": "App.message", "pk": 148, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:47:05.527Z", "is_read": true}}, {"model": "App.message", "pk": 149, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-11T15:47:10.935Z", "is_read": true}}, {"model": "App.message", "pk": 150, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-11T15:47:10.942Z", "is_read": true}}, {"model": "App.message", "pk": 151, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-11T15:47:18.350Z", "is_read": true}}, {"model": "App.message", "pk": 152, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-11T15:47:18.355Z", "is_read": true}}, {"model": "App.message", "pk": 153, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "newmessagefromdjango", "date": "2024-01-11T18:00:44.996Z", "is_read": true}}, {"model": "App.message", "pk": 154, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-11T18:00:45.012Z", "is_read": true}}, {"model": "App.message", "pk": 155, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hii", "date": "2024-01-11T18:38:21.683Z", "is_read": true}}, {"model": "App.message", "pk": 156, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-11T18:38:21.688Z", "is_read": true}}, {"model": "App.message", "pk": 157, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-11T18:38:33.493Z", "is_read": true}}, {"model": "App.message", "pk": 158, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-11T18:38:33.498Z", "is_read": true}}, {"model": "App.message", "pk": 159, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "<div class=\"text-start bg-body-tertiary\" style='position: fixed; z-index: 1; width: -webkit-fill-available; left: 0; top: 0;'> <div class=\"d-flex align-items-start pb-2 px-4\" style='.hover { color:red;}'> \t\t\t\t<a href=\"{% url \"message\" %}\" class='text-reset' style='align-self: center; margin-right: 12px;'><i class=\"fa-solid fa-arrow-left-long fs-3 mt-2 text-reset\"></i></a> <a href=\"{% url 'profile' direct.user.username %}\" class=\"list-group-item list-group-item-action border-0\"> <div class=\"badge bg-success float-right\"></div> <div class=\"d", "date": "2024-01-11T18:41:21.737Z", "is_read": true}}, {"model": "App.message", "pk": 160, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "<div class=\"text-start bg-body-tertiary\" style='position: fixed; z-index: 1; width: -webkit-fill-available; left: 0; top: 0;'> <div class=\"d-flex align-items-start pb-2 px-4\" style='.hover { color:red;}'> \t\t\t\t<a href=\"{% url \"message\" %}\" class='text-reset' style='align-self: center; margin-right: 12px;'><i class=\"fa-solid fa-arrow-left-long fs-3 mt-2 text-reset\"></i></a> <a href=\"{% url 'profile' direct.user.username %}\" class=\"list-group-item list-group-item-action border-0\"> <div class=\"badge bg-success float-right\"></div> <div class=\"d", "date": "2024-01-11T18:41:21.742Z", "is_read": true}}, {"model": "App.message", "pk": 161, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "boom", "date": "2024-01-11T18:42:33.766Z", "is_read": true}}, {"model": "App.message", "pk": 162, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "boom", "date": "2024-01-11T18:42:33.771Z", "is_read": true}}, {"model": "App.message", "pk": 163, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-11T18:47:34.989Z", "is_read": true}}, {"model": "App.message", "pk": 164, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-11T18:47:34.995Z", "is_read": true}}, {"model": "App.message", "pk": 165, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T18:56:53.438Z", "is_read": true}}, {"model": "App.message", "pk": 166, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T18:56:53.442Z", "is_read": true}}, {"model": "App.message", "pk": 167, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "2", "date": "2024-01-11T18:58:45.039Z", "is_read": true}}, {"model": "App.message", "pk": 168, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "2", "date": "2024-01-11T18:58:45.046Z", "is_read": true}}, {"model": "App.message", "pk": 169, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-11T19:22:05.755Z", "is_read": true}}, {"model": "App.message", "pk": 170, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-11T19:22:05.761Z", "is_read": true}}, {"model": "App.message", "pk": 171, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "boom", "date": "2024-01-12T09:04:59.829Z", "is_read": true}}, {"model": "App.message", "pk": 172, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "boom", "date": "2024-01-12T09:04:59.833Z", "is_read": true}}, {"model": "App.message", "pk": 173, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-12T09:05:42.145Z", "is_read": true}}, {"model": "App.message", "pk": 174, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-12T09:05:42.152Z", "is_read": true}}, {"model": "App.message", "pk": 175, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:10:14.390Z", "is_read": true}}, {"model": "App.message", "pk": 176, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:10:14.394Z", "is_read": true}}, {"model": "App.message", "pk": 177, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-12T09:14:21.396Z", "is_read": true}}, {"model": "App.message", "pk": 178, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "newmessagefromdjango", "date": "2024-01-12T09:14:21.402Z", "is_read": true}}, {"model": "App.message", "pk": 179, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:18:48.711Z", "is_read": true}}, {"model": "App.message", "pk": 180, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:18:48.717Z", "is_read": true}}, {"model": "App.message", "pk": 181, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-12T09:23:21.702Z", "is_read": true}}, {"model": "App.message", "pk": 182, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-12T09:23:21.708Z", "is_read": true}}, {"model": "App.message", "pk": 183, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-12T09:29:56.329Z", "is_read": true}}, {"model": "App.message", "pk": 184, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-12T09:29:56.334Z", "is_read": true}}, {"model": "App.message", "pk": 185, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:32:15.153Z", "is_read": true}}, {"model": "App.message", "pk": 186, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:32:15.160Z", "is_read": true}}, {"model": "App.message", "pk": 187, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:35:32.649Z", "is_read": true}}, {"model": "App.message", "pk": 188, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:35:32.654Z", "is_read": true}}, {"model": "App.message", "pk": 189, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "boom", "date": "2024-01-12T09:42:38.227Z", "is_read": true}}, {"model": "App.message", "pk": 190, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "boom", "date": "2024-01-12T09:42:38.235Z", "is_read": true}}, {"model": "App.message", "pk": 191, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-12T09:45:38.483Z", "is_read": true}}, {"model": "App.message", "pk": 192, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-12T09:45:38.491Z", "is_read": true}}, {"model": "App.message", "pk": 193, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "2", "date": "2024-01-12T09:49:56.555Z", "is_read": true}}, {"model": "App.message", "pk": 194, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "2", "date": "2024-01-12T09:49:56.562Z", "is_read": true}}, {"model": "App.message", "pk": 195, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:50:59.463Z", "is_read": true}}, {"model": "App.message", "pk": 196, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:50:59.468Z", "is_read": true}}, {"model": "App.message", "pk": 197, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:51:15.820Z", "is_read": true}}, {"model": "App.message", "pk": 198, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:51:15.826Z", "is_read": true}}, {"model": "App.message", "pk": 199, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-12T09:51:18.694Z", "is_read": true}}, {"model": "App.message", "pk": 200, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-12T09:51:18.699Z", "is_read": true}}, {"model": "App.message", "pk": 201, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-12T09:52:06.481Z", "is_read": true}}, {"model": "App.message", "pk": 202, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-12T09:52:06.487Z", "is_read": true}}, {"model": "App.message", "pk": 203, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-12T09:52:21.361Z", "is_read": true}}, {"model": "App.message", "pk": 204, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-12T09:52:21.366Z", "is_read": true}}, {"model": "App.message", "pk": 205, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-12T11:03:56.413Z", "is_read": true}}, {"model": "App.message", "pk": 206, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-12T11:03:56.418Z", "is_read": true}}, {"model": "App.message", "pk": 207, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": " {% extends 'base.html' %} {% load static %} {% block content %} <head> \t<style> .header { display: none; } .navbar { display: none; } .chat-online { color: #34ce57 } .chat-offline { color: #e4606d } .chat-messages { display: flex; flex-direction: column; max-height: 800px; } .chat-message-left, .chat-message-right { display: flex; flex-shrink: 0 } .chat-message-left { margin-right: auto } .chat-message-right { flex-direction: row-reverse; margin-left: auto } .py-3 { padding-top: 1rem!important; padding-bottom: 1rem!important; } .px-4 { padding-right: 1.5rem!important; padding-left: 1.5rem!important; } .flex-grow-0 { flex-grow: 0!important; } .border-top { border-top: 1px solid #dee2e6!important; } .chat-container { \tmax-width: 600px; \tmargin: auto; \tmargin-top: 20px; } .chat-header { \tbackground-color: #ffffff; \tpadding: 10px; \tborder-bottom: 1px solid #dee2e6; \ttext-align: center; } .chat-messages { \tmax-height: fit-content; \tmax-weight: 100vw; \toverflow-y: auto; margin:15px 0 50px 0; } .message { \tpadding: 10px; \tmargin: 5px; \tborder-radius: 8px; } .uimg { max-width:40px; max-height:40px; } @media (max-width: 767px) { .uimg { max-width:5vw; max-height:5vw; } .udt { font-size:2vw; } .chat-messages { max-height: fit-content; overflow-y: auto; margin:15px 0 50px 0; } } \t</style> </head> <br><br> <div \t\t\tclass=\"modal fade\" \t\t\tid=\"search2Modal\" \t\t\ttabindex=\"-1\" \t\t\taria-labelledby=\"search2ModalLabel\" \t\t\taria-hidden=\"true\" \t\t> \t\t\t<div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\"> \t\t\t\t<div class=\"modal-content\"> \t\t\t\t\t<div class=\"modal-header text-center\"> \t\t\t\t\t\t<h1 class=\"modal-title fs-4 text-center\">Search User</h1> \t\t\t\t\t\t<button \t\t\t\t\t\t\ttype=\"button\" \t\t\t\t\t\t\tclass=\"btn-close m-0\" \t\t\t\t\t\t\tdata-bs-dismiss=\"modal\" \t\t\t\t\t\t\taria-label=\"Close\" \t\t\t\t\t\t></button> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"modal-body text-center\"> \t\t\t\t\t\t<h3>Search User</h3> \t\t\t\t\t\t<form action=\"{% url 'search-users' %}\" method=\"GET\"> \t\t\t\t\t\t\t<div class=\"p-4\"> \t\t\t\t\t\t\t\t<input \t\t\t\t\t\t\t\t\ttype=\"text\" \t\t\t\t\t\t\t\t\tclass=\"p-2 border border-2 rounded rounded-5\" \t\t\t\t\t\t\t\t\tplaceholder=\" Search\" \t\t\t\t\t\t\t\t\tname=\"q\" \t\t\t\t\t\t\t\t\tvalue=\"{{ request.GET.q }}\" \t\t\t\t\t\t\t\t/> \t\t\t\t\t\t\t\t<button class=\"btn btn-primary rounded rounded-5\" type=\"submit\"> \t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i> \t\t\t\t\t\t\t\t</button> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</form> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> {% for direct in message_data %} {% if active_direct == direct.user.username %} <main class=\"conetent mt-2\"> <div class=\"container mt-3\"> \t\t<div class=\"text-start bg-body-tertiary\" style='position: fixed; z-index: 1; width: -webkit-fill-available; left: 0; top: 0;'> <div class=\"d-flex align-items-start pb-2 px-4\" style='.hover { color:red;}'> \t\t\t\t<a href=\"{% url \"message\" %}\" class='text-reset' style='align-self: center; margin-right: 12px;'><i class=\"fa-solid fa-arrow-left-long fs-3 mt-2 text-reset\"></i></a> <a href=\"{% url 'profile' direct.user.username %}\" class=\"list-group-item list-group-item-action border-0\"> <div class=\"badge bg-success float-right\"></div> <div class=\"d-flex align-items-start mx- mt-2\" style='.hover { color:red;}'> <img src=\"{{ direct.user.profile.image.url }}\" class=\"rounded-circle me-2\" alt=\"img\" width=\"48\" height=\"48\"> <div class=\"flex-grow-1 ms-2\" style='align-self: center;'> <p style='margin: 0;'>{{direct.user.profile.first_name}} {{direct.user.profile.last_name}}</p> <div class=\"small text-muted\"> @{{direct.user.username}} </div> </div> </div> </div> \t\t\t\t</a> </div> </h1> \t\t<div> \t\t\t<div class=\"row mx-0\"> \t\t\t\t<div class=\"col\"> \t\t\t\t\t<div class=\"position-relative\"> \t\t\t\t\t\t<div class=\"chat-messages p-1\"> \t\t\t\t\t\t\t\t\t{% for direct in directs %} <p>{{direct.date|date:\"d M, Y\"}}</p> \t\t\t\t\t\t\t\t\t\t{% if direct.sender == request.user %} \t\t\t\t\t\t\t\t\t\t{% if direct.body != 'newmessagefromdjango' %} \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat-message-right pb-2\"> \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex-shrink-1 bg-primary rounded-5 py-2 px-4 text-white\" style=\" \t\t\t\t\t\t\t\t\t\t\t\tmargin-top: auto; \t\t\t\t\t\t\t\t\t\t\t\tmargin-right: px;\"> \t\t\t\t\t\t\t\t\t\t\t\t\t{{direct.body}} \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t\t{% else %} \t\t\t\t\t\t\t\t\t\t{% if direct.body != 'newmessagefromdjango' %} \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat-message-left pb-2\"> \t\t\t\t\t\t\t\t\t\t\t\t<div style='align-self: end;'> \t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ direct.sender.profile.image.url }}\" class=\"rounded-circle me-1 uimg\" alt=\"img\" width=\"40\" height=\"40\"> \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex-shrink-1 rounded-5 py-2 px-4 text-white\" style=\" \t\t\t\t\t\t\t\t\t\t\t\tmargin-top: auto; background: #545050;\"> \t\t\t\t\t\t\t\t\t\t\t\t\t{{direct.body}} \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t{% endfor %} \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t\t<div class=\"flex-grow-0 p-1 msg bg-body-tertiary\" style='position: fixed; z-index: 3; width: -webkit-fill-available; left: 0; bottom: 0;'> \t\t\t\t\t\t\t<form method=\"POST\" action=\"{% url 'send-directs' %}\"> \t\t\t\t\t\t\t\t{% csrf_token %} \t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"to_user\" id=\"\" value=\"{{active_direct}}\"> \t\t\t\t\t\t\t\t<div class=\"input-group\"> \t\t\t\t\t\t\t\t\t<input name=\"body\" type=\"text\" class=\"form-control py-3 rounded rounded-5 px-4\" placeholder=\"Message...\" aria-describedby=\"inputGroup-sizing-l\" oninput=\"toggleSendButton()\"> \t\t\t\t\t\t\t\t\t<button class=\"btn bg-primary rounded rounded-5 px-4 ms-1\" type=\"submit\" id=\"sendButton\" style=\"display: none;\">Send</button> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</form> \t\t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> \t</div> </main> {% endif %} {% endfor %} <script src=\"//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js\"></script> <script src=\"//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script> \t<script> \t\tfunction toggleSendButton() { \t\t\tvar inputField = document.querySelector('input[name=\"body\"]'); \t\t\tvar sendButton = document.getElementById('sendButton'); \t \t\t\tsendButton.style.display = inputField.value.trim() !== '' ? 'block' : 'none'; \t\t} \t</script> </html> {% endblock content %} modify direct date is like instagram message section", "date": "2024-01-12T11:09:20.073Z", "is_read": true}}, {"model": "App.message", "pk": 208, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": " {% extends 'base.html' %} {% load static %} {% block content %} <head> \t<style> .header { display: none; } .navbar { display: none; } .chat-online { color: #34ce57 } .chat-offline { color: #e4606d } .chat-messages { display: flex; flex-direction: column; max-height: 800px; } .chat-message-left, .chat-message-right { display: flex; flex-shrink: 0 } .chat-message-left { margin-right: auto } .chat-message-right { flex-direction: row-reverse; margin-left: auto } .py-3 { padding-top: 1rem!important; padding-bottom: 1rem!important; } .px-4 { padding-right: 1.5rem!important; padding-left: 1.5rem!important; } .flex-grow-0 { flex-grow: 0!important; } .border-top { border-top: 1px solid #dee2e6!important; } .chat-container { \tmax-width: 600px; \tmargin: auto; \tmargin-top: 20px; } .chat-header { \tbackground-color: #ffffff; \tpadding: 10px; \tborder-bottom: 1px solid #dee2e6; \ttext-align: center; } .chat-messages { \tmax-height: fit-content; \tmax-weight: 100vw; \toverflow-y: auto; margin:15px 0 50px 0; } .message { \tpadding: 10px; \tmargin: 5px; \tborder-radius: 8px; } .uimg { max-width:40px; max-height:40px; } @media (max-width: 767px) { .uimg { max-width:5vw; max-height:5vw; } .udt { font-size:2vw; } .chat-messages { max-height: fit-content; overflow-y: auto; margin:15px 0 50px 0; } } \t</style> </head> <br><br> <div \t\t\tclass=\"modal fade\" \t\t\tid=\"search2Modal\" \t\t\ttabindex=\"-1\" \t\t\taria-labelledby=\"search2ModalLabel\" \t\t\taria-hidden=\"true\" \t\t> \t\t\t<div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\"> \t\t\t\t<div class=\"modal-content\"> \t\t\t\t\t<div class=\"modal-header text-center\"> \t\t\t\t\t\t<h1 class=\"modal-title fs-4 text-center\">Search User</h1> \t\t\t\t\t\t<button \t\t\t\t\t\t\ttype=\"button\" \t\t\t\t\t\t\tclass=\"btn-close m-0\" \t\t\t\t\t\t\tdata-bs-dismiss=\"modal\" \t\t\t\t\t\t\taria-label=\"Close\" \t\t\t\t\t\t></button> \t\t\t\t\t</div> \t\t\t\t\t<div class=\"modal-body text-center\"> \t\t\t\t\t\t<h3>Search User</h3> \t\t\t\t\t\t<form action=\"{% url 'search-users' %}\" method=\"GET\"> \t\t\t\t\t\t\t<div class=\"p-4\"> \t\t\t\t\t\t\t\t<input \t\t\t\t\t\t\t\t\ttype=\"text\" \t\t\t\t\t\t\t\t\tclass=\"p-2 border border-2 rounded rounded-5\" \t\t\t\t\t\t\t\t\tplaceholder=\" Search\" \t\t\t\t\t\t\t\t\tname=\"q\" \t\t\t\t\t\t\t\t\tvalue=\"{{ request.GET.q }}\" \t\t\t\t\t\t\t\t/> \t\t\t\t\t\t\t\t<button class=\"btn btn-primary rounded rounded-5\" type=\"submit\"> \t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-magnifying-glass\"></i> \t\t\t\t\t\t\t\t</button> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</form> \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> {% for direct in message_data %} {% if active_direct == direct.user.username %} <main class=\"conetent mt-2\"> <div class=\"container mt-3\"> \t\t<div class=\"text-start bg-body-tertiary\" style='position: fixed; z-index: 1; width: -webkit-fill-available; left: 0; top: 0;'> <div class=\"d-flex align-items-start pb-2 px-4\" style='.hover { color:red;}'> \t\t\t\t<a href=\"{% url \"message\" %}\" class='text-reset' style='align-self: center; margin-right: 12px;'><i class=\"fa-solid fa-arrow-left-long fs-3 mt-2 text-reset\"></i></a> <a href=\"{% url 'profile' direct.user.username %}\" class=\"list-group-item list-group-item-action border-0\"> <div class=\"badge bg-success float-right\"></div> <div class=\"d-flex align-items-start mx- mt-2\" style='.hover { color:red;}'> <img src=\"{{ direct.user.profile.image.url }}\" class=\"rounded-circle me-2\" alt=\"img\" width=\"48\" height=\"48\"> <div class=\"flex-grow-1 ms-2\" style='align-self: center;'> <p style='margin: 0;'>{{direct.user.profile.first_name}} {{direct.user.profile.last_name}}</p> <div class=\"small text-muted\"> @{{direct.user.username}} </div> </div> </div> </div> \t\t\t\t</a> </div> </h1> \t\t<div> \t\t\t<div class=\"row mx-0\"> \t\t\t\t<div class=\"col\"> \t\t\t\t\t<div class=\"position-relative\"> \t\t\t\t\t\t<div class=\"chat-messages p-1\"> \t\t\t\t\t\t\t\t\t{% for direct in directs %} <p>{{direct.date|date:\"d M, Y\"}}</p> \t\t\t\t\t\t\t\t\t\t{% if direct.sender == request.user %} \t\t\t\t\t\t\t\t\t\t{% if direct.body != 'newmessagefromdjango' %} \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat-message-right pb-2\"> \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex-shrink-1 bg-primary rounded-5 py-2 px-4 text-white\" style=\" \t\t\t\t\t\t\t\t\t\t\t\tmargin-top: auto; \t\t\t\t\t\t\t\t\t\t\t\tmargin-right: px;\"> \t\t\t\t\t\t\t\t\t\t\t\t\t{{direct.body}} \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t\t{% else %} \t\t\t\t\t\t\t\t\t\t{% if direct.body != 'newmessagefromdjango' %} \t\t\t\t\t\t\t\t\t\t\t<div class=\"chat-message-left pb-2\"> \t\t\t\t\t\t\t\t\t\t\t\t<div style='align-self: end;'> \t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ direct.sender.profile.image.url }}\" class=\"rounded-circle me-1 uimg\" alt=\"img\" width=\"40\" height=\"40\"> \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex-shrink-1 rounded-5 py-2 px-4 text-white\" style=\" \t\t\t\t\t\t\t\t\t\t\t\tmargin-top: auto; background: #545050;\"> \t\t\t\t\t\t\t\t\t\t\t\t\t{{direct.body}} \t\t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t\t{% endif %} \t\t\t\t\t\t\t\t\t{% endfor %} \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t\t<div class=\"flex-grow-0 p-1 msg bg-body-tertiary\" style='position: fixed; z-index: 3; width: -webkit-fill-available; left: 0; bottom: 0;'> \t\t\t\t\t\t\t<form method=\"POST\" action=\"{% url 'send-directs' %}\"> \t\t\t\t\t\t\t\t{% csrf_token %} \t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"to_user\" id=\"\" value=\"{{active_direct}}\"> \t\t\t\t\t\t\t\t<div class=\"input-group\"> \t\t\t\t\t\t\t\t\t<input name=\"body\" type=\"text\" class=\"form-control py-3 rounded rounded-5 px-4\" placeholder=\"Message...\" aria-describedby=\"inputGroup-sizing-l\" oninput=\"toggleSendButton()\"> \t\t\t\t\t\t\t\t\t<button class=\"btn bg-primary rounded rounded-5 px-4 ms-1\" type=\"submit\" id=\"sendButton\" style=\"display: none;\">Send</button> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</form> \t\t\t\t\t\t</div> \t\t\t\t</div> \t\t\t</div> \t\t</div> \t</div> </main> {% endif %} {% endfor %} <script src=\"//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js\"></script> <script src=\"//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script> \t<script> \t\tfunction toggleSendButton() { \t\t\tvar inputField = document.querySelector('input[name=\"body\"]'); \t\t\tvar sendButton = document.getElementById('sendButton'); \t \t\t\tsendButton.style.display = inputField.value.trim() !== '' ? 'block' : 'none'; \t\t} \t</script> </html> {% endblock content %} modify direct date is like instagram message section", "date": "2024-01-12T11:09:20.079Z", "is_read": true}}, {"model": "App.message", "pk": 209, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-12T11:16:26.681Z", "is_read": true}}, {"model": "App.message", "pk": 210, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-12T11:16:26.686Z", "is_read": true}}, {"model": "App.message", "pk": 211, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "ddd", "date": "2024-01-12T12:23:11.223Z", "is_read": true}}, {"model": "App.message", "pk": 212, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "ddd", "date": "2024-01-12T12:23:11.229Z", "is_read": true}}, {"model": "App.message", "pk": 213, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "fff", "date": "2024-01-12T12:32:44.095Z", "is_read": true}}, {"model": "App.message", "pk": 214, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "fff", "date": "2024-01-12T12:32:44.101Z", "is_read": true}}, {"model": "App.message", "pk": 215, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-12T12:33:14.770Z", "is_read": true}}, {"model": "App.message", "pk": 216, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-12T12:33:14.778Z", "is_read": true}}, {"model": "App.message", "pk": 217, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-12T12:49:40.324Z", "is_read": true}}, {"model": "App.message", "pk": 218, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-12T12:49:40.330Z", "is_read": true}}, {"model": "App.message", "pk": 219, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-13T13:51:00.503Z", "is_read": true}}, {"model": "App.message", "pk": 220, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "newmessagefromdjango", "date": "2024-01-13T13:51:00.519Z", "is_read": true}}, {"model": "App.message", "pk": 221, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "newmessagefromdjango", "date": "2024-01-15T19:09:32.394Z", "is_read": true}}, {"model": "App.message", "pk": 222, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-15T19:09:32.400Z", "is_read": true}}, {"model": "App.message", "pk": 223, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "newmessagefromdjango", "date": "2024-01-15T19:09:32.522Z", "is_read": true}}, {"model": "App.message", "pk": 224, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-15T19:09:32.528Z", "is_read": true}}, {"model": "App.message", "pk": 225, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "hii", "date": "2024-01-15T19:09:37.359Z", "is_read": true}}, {"model": "App.message", "pk": 226, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-15T19:09:37.364Z", "is_read": true}}, {"model": "App.message", "pk": 227, "fields": {"user": 1, "sender": 1, "reciepient": 5, "body": "newmessagefromdjango", "date": "2024-01-15T19:10:03.225Z", "is_read": true}}, {"model": "App.message", "pk": 228, "fields": {"user": 5, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-15T19:10:03.230Z", "is_read": true}}, {"model": "App.message", "pk": 229, "fields": {"user": 1, "sender": 1, "reciepient": 5, "body": "hii", "date": "2024-01-15T19:10:07.593Z", "is_read": true}}, {"model": "App.message", "pk": 230, "fields": {"user": 5, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-15T19:10:07.598Z", "is_read": true}}, {"model": "App.message", "pk": 231, "fields": {"user": 5, "sender": 5, "reciepient": 1, "body": "hello", "date": "2024-01-15T19:10:22.412Z", "is_read": true}}, {"model": "App.message", "pk": 232, "fields": {"user": 1, "sender": 5, "reciepient": 5, "body": "hello", "date": "2024-01-15T19:10:22.417Z", "is_read": true}}, {"model": "App.message", "pk": 233, "fields": {"user": 3, "sender": 3, "reciepient": 1, "body": "hello", "date": "2024-01-17T18:15:00.313Z", "is_read": true}}, {"model": "App.message", "pk": 234, "fields": {"user": 1, "sender": 3, "reciepient": 3, "body": "hello", "date": "2024-01-17T18:15:00.314Z", "is_read": true}}, {"model": "App.message", "pk": 235, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-18T18:34:30.121Z", "is_read": true}}, {"model": "App.message", "pk": 236, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-18T18:34:30.127Z", "is_read": true}}, {"model": "App.message", "pk": 237, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "newmessagefromdjango", "date": "2024-01-18T18:37:20.341Z", "is_read": true}}, {"model": "App.message", "pk": 238, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-18T18:37:20.360Z", "is_read": true}}, {"model": "App.message", "pk": 239, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "hii", "date": "2024-01-18T18:37:29.219Z", "is_read": true}}, {"model": "App.message", "pk": 240, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-18T18:37:29.224Z", "is_read": true}}, {"model": "App.message", "pk": 241, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hii", "date": "2024-01-19T09:36:12.011Z", "is_read": true}}, {"model": "App.message", "pk": 242, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hii", "date": "2024-01-19T09:36:12.017Z", "is_read": true}}, {"model": "App.message", "pk": 243, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-19T09:42:20.688Z", "is_read": true}}, {"model": "App.message", "pk": 244, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-19T09:42:20.693Z", "is_read": true}}, {"model": "App.message", "pk": 245, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "boom", "date": "2024-01-19T09:44:51.041Z", "is_read": true}}, {"model": "App.message", "pk": 246, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "boom", "date": "2024-01-19T09:44:51.046Z", "is_read": true}}, {"model": "App.message", "pk": 247, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-19T10:19:03.474Z", "is_read": true}}, {"model": "App.message", "pk": 248, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-19T10:19:03.480Z", "is_read": true}}, {"model": "App.message", "pk": 249, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "2", "date": "2024-01-19T11:48:38.995Z", "is_read": true}}, {"model": "App.message", "pk": 250, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "2", "date": "2024-01-19T11:48:39.004Z", "is_read": false}}, {"model": "App.message", "pk": 251, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "3", "date": "2024-01-19T11:48:42.420Z", "is_read": true}}, {"model": "App.message", "pk": 252, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "3", "date": "2024-01-19T11:48:42.424Z", "is_read": false}}, {"model": "App.message", "pk": 253, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "4", "date": "2024-01-19T11:48:49.149Z", "is_read": true}}, {"model": "App.message", "pk": 254, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "4", "date": "2024-01-19T11:48:49.152Z", "is_read": false}}, {"model": "App.message", "pk": 255, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "5", "date": "2024-01-19T11:48:52.433Z", "is_read": true}}, {"model": "App.message", "pk": 256, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "5", "date": "2024-01-19T11:48:52.437Z", "is_read": false}}, {"model": "App.message", "pk": 257, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "6", "date": "2024-01-19T11:48:54.680Z", "is_read": true}}, {"model": "App.message", "pk": 258, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "6", "date": "2024-01-19T11:48:54.683Z", "is_read": false}}, {"model": "App.message", "pk": 259, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "7", "date": "2024-01-19T11:48:57.021Z", "is_read": true}}, {"model": "App.message", "pk": 260, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "7", "date": "2024-01-19T11:48:57.025Z", "is_read": false}}, {"model": "App.message", "pk": 261, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "8", "date": "2024-01-19T11:49:01.758Z", "is_read": true}}, {"model": "App.message", "pk": 262, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "8", "date": "2024-01-19T11:49:01.761Z", "is_read": false}}, {"model": "App.message", "pk": 263, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "9", "date": "2024-01-19T11:49:06.286Z", "is_read": true}}, {"model": "App.message", "pk": 264, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "9", "date": "2024-01-19T11:49:06.289Z", "is_read": false}}, {"model": "App.message", "pk": 265, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "10", "date": "2024-01-19T11:49:11.136Z", "is_read": true}}, {"model": "App.message", "pk": 266, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "10", "date": "2024-01-19T11:49:11.142Z", "is_read": false}}, {"model": "App.message", "pk": 267, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "11", "date": "2024-01-19T11:49:16.244Z", "is_read": true}}, {"model": "App.message", "pk": 268, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "11", "date": "2024-01-19T11:49:16.251Z", "is_read": false}}, {"model": "App.message", "pk": 269, "fields": {"user": 1, "sender": 1, "reciepient": 25, "body": "12", "date": "2024-01-19T11:49:21.177Z", "is_read": true}}, {"model": "App.message", "pk": 270, "fields": {"user": 25, "sender": 1, "reciepient": 1, "body": "12", "date": "2024-01-19T11:49:21.182Z", "is_read": false}}, {"model": "App.message", "pk": 271, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "3", "date": "2024-01-19T11:55:35.974Z", "is_read": true}}, {"model": "App.message", "pk": 272, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "3", "date": "2024-01-19T11:55:35.976Z", "is_read": true}}, {"model": "App.message", "pk": 273, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "4", "date": "2024-01-19T11:55:39.259Z", "is_read": true}}, {"model": "App.message", "pk": 274, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "4", "date": "2024-01-19T11:55:39.260Z", "is_read": true}}, {"model": "App.message", "pk": 275, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "5", "date": "2024-01-19T11:55:44.492Z", "is_read": true}}, {"model": "App.message", "pk": 276, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "5", "date": "2024-01-19T11:55:44.495Z", "is_read": true}}, {"model": "App.message", "pk": 277, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "6", "date": "2024-01-19T11:55:48.630Z", "is_read": true}}, {"model": "App.message", "pk": 278, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "6", "date": "2024-01-19T11:55:48.634Z", "is_read": true}}, {"model": "App.message", "pk": 279, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "7", "date": "2024-01-19T11:55:51.283Z", "is_read": true}}, {"model": "App.message", "pk": 280, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "7", "date": "2024-01-19T11:55:51.288Z", "is_read": true}}, {"model": "App.message", "pk": 281, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "8", "date": "2024-01-19T11:55:54.862Z", "is_read": true}}, {"model": "App.message", "pk": 282, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "8", "date": "2024-01-19T11:55:54.866Z", "is_read": true}}, {"model": "App.message", "pk": 289, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "9", "date": "2024-01-19T11:57:57.529Z", "is_read": true}}, {"model": "App.message", "pk": 290, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "9", "date": "2024-01-19T11:57:57.534Z", "is_read": true}}, {"model": "App.message", "pk": 291, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "10", "date": "2024-01-19T11:58:42.397Z", "is_read": true}}, {"model": "App.message", "pk": 292, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "10", "date": "2024-01-19T11:58:42.403Z", "is_read": true}}, {"model": "App.message", "pk": 293, "fields": {"user": 1, "sender": 1, "reciepient": 3, "body": "11", "date": "2024-01-19T11:59:38.694Z", "is_read": true}}, {"model": "App.message", "pk": 294, "fields": {"user": 3, "sender": 1, "reciepient": 1, "body": "11", "date": "2024-01-19T11:59:38.700Z", "is_read": true}}, {"model": "App.message", "pk": 295, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "hello", "date": "2024-01-19T12:48:13.924Z", "is_read": true}}, {"model": "App.message", "pk": 296, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "hello", "date": "2024-01-19T12:48:13.930Z", "is_read": true}}, {"model": "App.message", "pk": 297, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-19T12:50:33.871Z", "is_read": true}}, {"model": "App.message", "pk": 298, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-19T12:50:33.879Z", "is_read": true}}, {"model": "App.message", "pk": 299, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "ggg", "date": "2024-01-19T13:01:06.168Z", "is_read": true}}, {"model": "App.message", "pk": 300, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "ggg", "date": "2024-01-19T13:01:06.174Z", "is_read": true}}, {"model": "App.message", "pk": 301, "fields": {"user": 1, "sender": 1, "reciepient": 6, "body": "nice", "date": "2024-01-19T13:05:01.166Z", "is_read": true}}, {"model": "App.message", "pk": 302, "fields": {"user": 6, "sender": 1, "reciepient": 1, "body": "nice", "date": "2024-01-19T13:05:01.171Z", "is_read": true}}, {"model": "App.message", "pk": 303, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "ggg", "date": "2024-01-19T13:05:25.474Z", "is_read": true}}, {"model": "App.message", "pk": 304, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "ggg", "date": "2024-01-19T13:05:25.482Z", "is_read": true}}, {"model": "App.message", "pk": 305, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "ff", "date": "2024-01-19T13:05:29.311Z", "is_read": true}}, {"model": "App.message", "pk": 306, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "ff", "date": "2024-01-19T13:05:29.317Z", "is_read": true}}, {"model": "App.message", "pk": 307, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "ss", "date": "2024-01-19T13:13:18.008Z", "is_read": true}}, {"model": "App.message", "pk": 308, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "ss", "date": "2024-01-19T13:13:18.012Z", "is_read": true}}, {"model": "App.message", "pk": 309, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "ssss", "date": "2024-01-19T13:13:21.729Z", "is_read": true}}, {"model": "App.message", "pk": 310, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "ssss", "date": "2024-01-19T13:13:21.737Z", "is_read": true}}, {"model": "App.message", "pk": 311, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "fff", "date": "2024-01-19T13:23:23.431Z", "is_read": true}}, {"model": "App.message", "pk": 312, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "fff", "date": "2024-01-19T13:23:23.437Z", "is_read": false}}, {"model": "App.message", "pk": 313, "fields": {"user": 1, "sender": 1, "reciepient": 2, "body": "newmessagefromdjango", "date": "2024-01-19T13:36:45.902Z", "is_read": true}}, {"model": "App.message", "pk": 314, "fields": {"user": 2, "sender": 1, "reciepient": 1, "body": "newmessagefromdjango", "date": "2024-01-19T13:36:45.917Z", "is_read": false}}, {"model": "App.message", "pk": 315, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "fff", "date": "2024-01-19T13:40:03.392Z", "is_read": true}}, {"model": "App.message", "pk": 316, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "fff", "date": "2024-01-19T13:40:03.397Z", "is_read": false}}, {"model": "App.message", "pk": 317, "fields": {"user": 6, "sender": 6, "reciepient": 1, "body": "hii", "date": "2024-01-19T14:03:45.891Z", "is_read": true}}, {"model": "App.message", "pk": 318, "fields": {"user": 1, "sender": 6, "reciepient": 6, "body": "hii", "date": "2024-01-19T14:03:45.897Z", "is_read": false}}, {"model": "App.message", "pk": 319, "fields": {"user": 3, "sender": 3, "reciepient": 1, "body": "fff", "date": "2024-01-19T14:05:21.252Z", "is_read": true}}, {"model": "App.message", "pk": 320, "fields": {"user": 1, "sender": 3, "reciepient": 3, "body": "fff", "date": "2024-01-19T14:05:21.269Z", "is_read": true}}, {"model": "App.message", "pk": 321, "fields": {"user": 3, "sender": 3, "reciepient": 1, "body": "ggg", "date": "2024-01-19T14:14:07.686Z", "is_read": true}}, {"model": "App.message", "pk": 322, "fields": {"user": 1, "sender": 3, "reciepient": 3, "body": "ggg", "date": "2024-01-19T14:14:07.691Z", "is_read": true}}, {"model": "App.message", "pk": 323, "fields": {"user": 3, "sender": 3, "reciepient": 1, "body": "ff", "date": "2024-01-19T14:14:18.170Z", "is_read": true}}, {"model": "App.message", "pk": 324, "fields": {"user": 1, "sender": 3, "reciepient": 3, "body": "ff", "date": "2024-01-19T14:14:18.177Z", "is_read": true}}, {"model": "App.message", "pk": 325, "fields": {"user": 3, "sender": 3, "reciepient": 1, "body": "ff", "date": "2024-01-19T14:18:14.713Z", "is_read": true}}, {"model": "App.message", "pk": 326, "fields": {"user": 1, "sender": 3, "reciepient": 3, "body": "ff", "date": "2024-01-19T14:18:14.728Z", "is_read": false}}, {"model": "App.message", "pk": 327, "fields": {"user": 9, "sender": 9, "reciepient": 8, "body": "newmessagefromdjango", "date": "2024-01-19T15:31:55.122Z", "is_read": true}}, {"model": "App.message", "pk": 328, "fields": {"user": 8, "sender": 9, "reciepient": 9, "body": "newmessagefromdjango", "date": "2024-01-19T15:31:55.129Z", "is_read": false}}]