Identify recipient by User.FIELD for (not User.USERNAME_FIELD)
Hi, I have some weir situation here. First of all, this is not a feature request, but a "guidance request".
I'm using Django 1.5 custom user models, with the user's email as USERNAME_FIELD. My users also have another unique field (the NICK), so I would like to use this for the recipients list from a PM (because I think that if I show the users emails, I will get a lot of privacy complaints).
Any advice is welcome (maybe the class or method to override). Thanks in advance :)
Comments (7)
-
-
Sorry. Should also mention I've only gone as far as a "write" method. I haven't updated anything to do with the autocomplete or anything along that line.
-
repo owner - changed status to open
-
That would be great.. any progress yet? :)
-
repo owner - changed status to resolved
The new POSTMAN_NAME_USER_AS setting, committed today, is designed for this issue.
-
This is great! :) Is it possible to upgrade package via pip?
-
repo owner Not yet. I will package a version 3.3.0 and upload it on pypi later, with a few other fixes to come. I don't know enough installation tools, like pip, but you may provide a command-line option to mention this repository instead of the default pypi.
- Log in to comment
I have a fork that has been customized to allow for this. Unfortunately I don't use Mercurial/BitBucket much so I've likely borked things for a pull request.
https://bitbucket.org/volksman/django-postman