mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
[1.6.x] Replaced instances of 'his/her' with 'their'.
Backport of 8fbf13a6c8 from master
This commit is contained in:
@@ -259,8 +259,8 @@ class PasswordResetForm(forms.Form):
|
||||
|
||||
class SetPasswordForm(forms.Form):
|
||||
"""
|
||||
A form that lets a user change set his/her password without entering the
|
||||
old password
|
||||
A form that lets a user change set their password without entering the old
|
||||
password
|
||||
"""
|
||||
error_messages = {
|
||||
'password_mismatch': _("The two password fields didn't match."),
|
||||
@@ -294,8 +294,8 @@ class SetPasswordForm(forms.Form):
|
||||
|
||||
class PasswordChangeForm(SetPasswordForm):
|
||||
"""
|
||||
A form that lets a user change his/her password by entering
|
||||
their old password.
|
||||
A form that lets a user change their password by entering their old
|
||||
password.
|
||||
"""
|
||||
error_messages = dict(SetPasswordForm.error_messages, **{
|
||||
'password_incorrect': _("Your old password was entered incorrectly. "
|
||||
|
||||
@@ -306,7 +306,7 @@ class PermissionsMixin(models.Model):
|
||||
|
||||
def get_group_permissions(self, obj=None):
|
||||
"""
|
||||
Returns a list of permission strings that this user has through his/her
|
||||
Returns a list of permission strings that this user has through their
|
||||
groups. This method queries all available auth backends. If an object
|
||||
is passed in, only permissions matching this object are returned.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user