django-chelseru 1.0.6__py3-none-any.whl → 1.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_chelseru-1.0.6.dist-info → django_chelseru-1.0.8.dist-info}/METADATA +1 -1
- {django_chelseru-1.0.6.dist-info → django_chelseru-1.0.8.dist-info}/RECORD +7 -7
- drfchelseru/consumers.py +1 -1
- drfchelseru/routing.py +2 -2
- {django_chelseru-1.0.6.dist-info → django_chelseru-1.0.8.dist-info}/WHEEL +0 -0
- {django_chelseru-1.0.6.dist-info → django_chelseru-1.0.8.dist-info}/licenses/LICENSE +0 -0
- {django_chelseru-1.0.6.dist-info → django_chelseru-1.0.8.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
django_chelseru-1.0.
|
|
1
|
+
django_chelseru-1.0.8.dist-info/licenses/LICENSE,sha256=VupU5KV4NteHaNQb-WH31G_WZWezxXoomjiCIAHoQJo,1089
|
|
2
2
|
drfchelseru/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
drfchelseru/admin.py,sha256=8X67Sy8k5qQzZ4ifuJ_5O-UqVWby4uX53Iq-KNuODxM,948
|
|
4
4
|
drfchelseru/apps.py,sha256=hOTTzFGLXiTPZeN8p_LLcSECLtsR2Q0SUo8zJzgM-qQ,211
|
|
5
|
-
drfchelseru/consumers.py,sha256=
|
|
5
|
+
drfchelseru/consumers.py,sha256=c8h9JYu5QUSKRREFrIrkjpkEQTzG5V8eg2lriaZODsc,2614
|
|
6
6
|
drfchelseru/middlewares.py,sha256=adrhoJE7uo4WISfSIXK41XMQQzMaBshq3r61RblMPAQ,2570
|
|
7
7
|
drfchelseru/models.py,sha256=9Wa-_Xk28zpFQ4HoRbQdcboZpjUFqxKHpZd05Vx8xXs,6296
|
|
8
|
-
drfchelseru/routing.py,sha256=
|
|
8
|
+
drfchelseru/routing.py,sha256=shAlgzcIwVuVPlvKeWBLCqr6PuBTHyIrWNgHEfnqrxg,165
|
|
9
9
|
drfchelseru/serializers.py,sha256=tM7dN362Vdx0UXq6OfNmYh6rTN1bwFoEgOn1MG4CZIY,1299
|
|
10
10
|
drfchelseru/services.py,sha256=FkJlsFtTSiwwQ6g-nkSuV8XvY-dX-abAY_0WGbD0Ppw,10139
|
|
11
11
|
drfchelseru/settings.py,sha256=ksiuFgjf1HZC6dajQXEra67WyUH6vYqjcQT81NdhELw,9051
|
|
@@ -26,7 +26,7 @@ drfchelseru/migrations/0009_alter_chatroom_status.py,sha256=QaAEUpERV8rnN-ifimA-
|
|
|
26
26
|
drfchelseru/migrations/0010_chatroom_banneds_chatroom_descriptions_chatroom_name_and_more.py,sha256=aeotKPmdFJSjeA2-9VGApLfpx-NJkOrRJI2j2mdkf1U,1198
|
|
27
27
|
drfchelseru/migrations/0011_alter_chatroom_user_1_alter_chatroom_user_2.py,sha256=9R66LzIujkh_4BpWtobpOvx3NALsMKUmtI5GDZXoSxQ,971
|
|
28
28
|
drfchelseru/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
-
django_chelseru-1.0.
|
|
30
|
-
django_chelseru-1.0.
|
|
31
|
-
django_chelseru-1.0.
|
|
32
|
-
django_chelseru-1.0.
|
|
29
|
+
django_chelseru-1.0.8.dist-info/METADATA,sha256=6YLmv4mglTTlfHKqvDcVtyhIjheYIQyL38eY05VoCI4,10933
|
|
30
|
+
django_chelseru-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
django_chelseru-1.0.8.dist-info/top_level.txt,sha256=fsaO1F03W3j4AYi0TfDGv5Cjb_Qrh6RSkwkWqfqaMns,12
|
|
32
|
+
django_chelseru-1.0.8.dist-info/RECORD,,
|
drfchelseru/consumers.py
CHANGED
|
@@ -10,7 +10,7 @@ User = get_user_model()
|
|
|
10
10
|
class ChatConsumer(AsyncWebsocketConsumer):
|
|
11
11
|
@sync_to_async
|
|
12
12
|
def is_user_in_chat_room(self, user, chat_room):
|
|
13
|
-
if chat_room.users.filter(
|
|
13
|
+
if chat_room.users.filter(id=user.id).exists():
|
|
14
14
|
return True
|
|
15
15
|
return user == chat_room.user_1 or user == chat_room.user_2
|
|
16
16
|
|
drfchelseru/routing.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|