django-chelseru 1.0.6__tar.gz → 1.0.8__tar.gz

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.
Files changed (41) hide show
  1. {django_chelseru-1.0.6/django_chelseru.egg-info → django_chelseru-1.0.8}/PKG-INFO +1 -1
  2. {django_chelseru-1.0.6 → django_chelseru-1.0.8/django_chelseru.egg-info}/PKG-INFO +1 -1
  3. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/consumers.py +1 -1
  4. django_chelseru-1.0.8/drfchelseru/routing.py +6 -0
  5. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/setup.py +1 -1
  6. django_chelseru-1.0.6/drfchelseru/routing.py +0 -6
  7. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/LICENSE +0 -0
  8. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/MANIFEST.in +0 -0
  9. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/README.md +0 -0
  10. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/README_PA.md +0 -0
  11. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/django_chelseru.egg-info/SOURCES.txt +0 -0
  12. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/django_chelseru.egg-info/dependency_links.txt +0 -0
  13. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/django_chelseru.egg-info/requires.txt +0 -0
  14. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/django_chelseru.egg-info/top_level.txt +0 -0
  15. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/__init__.py +0 -0
  16. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/admin.py +0 -0
  17. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/apps.py +0 -0
  18. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/middlewares.py +0 -0
  19. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0001_initial.py +0 -0
  20. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0002_otpcode_session_user.py +0 -0
  21. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0003_rename_mobile_otpcode_mobile_number.py +0 -0
  22. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0004_rename_message_message_sms.py +0 -0
  23. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0005_rename_message_sms_messagesms_chatroom_messagechat.py +0 -0
  24. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0006_alter_chatroom_user_1_alter_chatroom_user_2_and_more.py +0 -0
  25. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0007_chatroom_pinned_for_chatroom_status_chatroom_users_and_more.py +0 -0
  26. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0008_alter_chatroompermissions_user.py +0 -0
  27. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0009_alter_chatroom_status.py +0 -0
  28. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0010_chatroom_banneds_chatroom_descriptions_chatroom_name_and_more.py +0 -0
  29. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/0011_alter_chatroom_user_1_alter_chatroom_user_2.py +0 -0
  30. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/migrations/__init__.py +0 -0
  31. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/models.py +0 -0
  32. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/serializers.py +0 -0
  33. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/services.py +0 -0
  34. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/settings.py +0 -0
  35. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/signals.py +0 -0
  36. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/tests.py +0 -0
  37. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/urls.py +0 -0
  38. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/validators.py +0 -0
  39. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/drfchelseru/views.py +0 -0
  40. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/pyproject.toml +0 -0
  41. {django_chelseru-1.0.6 → django_chelseru-1.0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-chelseru
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Summary: Authentication system, online and real-time chat, SMS system for Iranian SMS services.
5
5
  Home-page: https://pipdjango.chelseru.com
6
6
  Author: Sobhan Bahman|Rashnu
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-chelseru
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Summary: Authentication system, online and real-time chat, SMS system for Iranian SMS services.
5
5
  Home-page: https://pipdjango.chelseru.com
6
6
  Author: Sobhan Bahman|Rashnu
@@ -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(user__id=user.id).exists():
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
 
@@ -0,0 +1,6 @@
1
+ from django.urls import re_path
2
+ from . import consumers
3
+
4
+ websocket_urlpatterns = [
5
+ re_path(r'chat/(?P<chat_room_id>\d+)/$', consumers.ChatConsumer.as_asgi()),
6
+ ]
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name='django-chelseru',
6
- version='1.0.6',
6
+ version='1.0.8',
7
7
  packages=find_packages(),
8
8
  include_package_data=True,
9
9
  install_requires=[
@@ -1,6 +0,0 @@
1
- from django.urls import re_path
2
- from . import consumers
3
-
4
- websocket_urlpatterns = [
5
- re_path(r'ws/chat/(?P<chat_room_id>\d+)/$', consumers.ChatConsumer.as_asgi()),
6
- ]
File without changes