django-private-chat
django-private-chat copied to clipboard
how can I change this packages to get work with id and not username
- django-private-chat version: 3.0
- Django version: 3.0.4
- Python version:3.7
- Operating System: Mac
Description
hi, first of all thanks for this awesome packages, I want to know how can I modify the packages to get work with id pk instead of username . And I want to know if this packages will work with Django custom user model .
Hi @TheGhostDevlopper
- list of changes:
-
https://github.com/Bearle/django-private-chat/blob/dev/django_private_chat/urls.py#L8
-
https://github.com/Bearle/django-private-chat/blob/dev/django_private_chat/views.py#L27
-
https://github.com/Bearle/django-private-chat/blob/dev/django_private_chat/views.py#L29
- Custom user model is supported. You just need to define AUTH_USER_MODEL in your settings.py
PS I'm not a contributor.