django-private-chat icon indicating copy to clipboard operation
django-private-chat copied to clipboard

how can I change this packages to get work with id and not username

Open Bensebabillal opened this issue 4 years ago • 1 comments

  • 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 .

Bensebabillal avatar May 09 '20 12:05 Bensebabillal

Hi @TheGhostDevlopper

  1. 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

  1. Custom user model is supported. You just need to define AUTH_USER_MODEL in your settings.py

PS I'm not a contributor.

rumititim avatar Oct 15 '20 20:10 rumititim