-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pronouns #542
Pronouns #542
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR contains several things besides what you mentioned in your comment. I'd recommend breaking this apart so that each change can be reviewed individually. It's typically good practice to keep PRs small and focused. The pronouns feature is also going to need a bit of work here.
Whoops, not sure how those other commits got in. Will rebase and fix |
Allows the user to set their own pronouns and have them displayed across the DB.
So, haven't seen any code review in a week so I'll step in. This looks very good, but the main remaining problem here is that people aren't able to edit their own pronouns (permissions in forms are denied by default). See image below. This can be confusing, as developers typically give themselves admin rights, which bypass all permission checks and therefore doesn't show it as greyed-out, but you definitely want folks to be able to edit this! You'll need to add it here, probably to both "thisisme" and "hasperm". Officers have permission to edit all users' stuff like this, nominally in case of abuse1, but typically it's used because there's a typo or something and they're the one staring at it all the time. Line 73 in a0e0cca
Click to see steps to reproduce this image
Footnotes
|
A difference between upstream and this branch caused two duplicate migration IDs to be leafs of 0004.
- Remove pronouns from _str_() function - Remove pronouns from admin panel - Raised character limit from 13 to 32
Displays beneath group list Also fix styling on modify/impersonate buttons
The only person who should be able to edit a user's pronouns is the user themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks great! Thanks for working on this!
Add user-settable pronouns to the database User model. These then get concatenated onto the
__str__
method of theUser
model in the same way as nicknames once set, except the pronouns are placed at the end inside of parentheses..