Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
8fbf13a6
Kaydet (Commit)
8fbf13a6
authored
Tem 21, 2014
tarafından
Iain Dawson
Kaydeden (comit)
Tim Graham
Tem 21, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced instances of 'his/her' with 'their'.
üst
3f1412ff
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
forms.py
django/contrib/auth/forms.py
+4
-4
models.py
django/contrib/auth/models.py
+2
-2
committing-code.txt
docs/internals/contributing/committing-code.txt
+1
-1
auth.txt
docs/ref/contrib/auth.txt
+1
-1
customizing.txt
docs/topics/auth/customizing.txt
+1
-1
default.txt
docs/topics/auth/default.txt
+2
-2
No files found.
django/contrib/auth/forms.py
Dosyayı görüntüle @
8fbf13a6
...
@@ -261,8 +261,8 @@ class PasswordResetForm(forms.Form):
...
@@ -261,8 +261,8 @@ class PasswordResetForm(forms.Form):
class
SetPasswordForm
(
forms
.
Form
):
class
SetPasswordForm
(
forms
.
Form
):
"""
"""
A form that lets a user change set
his/her password without entering the
A form that lets a user change set
their password without entering the old
old
password
password
"""
"""
error_messages
=
{
error_messages
=
{
'password_mismatch'
:
_
(
"The two password fields didn't match."
),
'password_mismatch'
:
_
(
"The two password fields didn't match."
),
...
@@ -296,8 +296,8 @@ class SetPasswordForm(forms.Form):
...
@@ -296,8 +296,8 @@ class SetPasswordForm(forms.Form):
class
PasswordChangeForm
(
SetPasswordForm
):
class
PasswordChangeForm
(
SetPasswordForm
):
"""
"""
A form that lets a user change
his/her password by entering
A form that lets a user change
their password by entering their old
their old
password.
password.
"""
"""
error_messages
=
dict
(
SetPasswordForm
.
error_messages
,
**
{
error_messages
=
dict
(
SetPasswordForm
.
error_messages
,
**
{
'password_incorrect'
:
_
(
"Your old password was entered incorrectly. "
'password_incorrect'
:
_
(
"Your old password was entered incorrectly. "
...
...
django/contrib/auth/models.py
Dosyayı görüntüle @
8fbf13a6
...
@@ -308,7 +308,7 @@ class PermissionsMixin(models.Model):
...
@@ -308,7 +308,7 @@ class PermissionsMixin(models.Model):
groups
=
models
.
ManyToManyField
(
Group
,
verbose_name
=
_
(
'groups'
),
groups
=
models
.
ManyToManyField
(
Group
,
verbose_name
=
_
(
'groups'
),
blank
=
True
,
help_text
=
_
(
'The groups this user belongs to. A user will '
blank
=
True
,
help_text
=
_
(
'The groups this user belongs to. A user will '
'get all permissions granted to each of '
'get all permissions granted to each of '
'
his/he
r group.'
),
'
thei
r group.'
),
related_name
=
"user_set"
,
related_query_name
=
"user"
)
related_name
=
"user_set"
,
related_query_name
=
"user"
)
user_permissions
=
models
.
ManyToManyField
(
Permission
,
user_permissions
=
models
.
ManyToManyField
(
Permission
,
verbose_name
=
_
(
'user permissions'
),
blank
=
True
,
verbose_name
=
_
(
'user permissions'
),
blank
=
True
,
...
@@ -320,7 +320,7 @@ class PermissionsMixin(models.Model):
...
@@ -320,7 +320,7 @@ class PermissionsMixin(models.Model):
def
get_group_permissions
(
self
,
obj
=
None
):
def
get_group_permissions
(
self
,
obj
=
None
):
"""
"""
Returns a list of permission strings that this user has through
his/he
r
Returns a list of permission strings that this user has through
thei
r
groups. This method queries all available auth backends. If an object
groups. This method queries all available auth backends. If an object
is passed in, only permissions matching this object are returned.
is passed in, only permissions matching this object are returned.
"""
"""
...
...
docs/internals/contributing/committing-code.txt
Dosyayı görüntüle @
8fbf13a6
...
@@ -228,7 +228,7 @@ another committer, **before** you commit it in the first place!
...
@@ -228,7 +228,7 @@ another committer, **before** you commit it in the first place!
When a mistaken commit is discovered, please follow these guidelines:
When a mistaken commit is discovered, please follow these guidelines:
* If possible, have the original author revert
his/he
r own commit.
* If possible, have the original author revert
thei
r own commit.
* Don't revert another author's changes without permission from the
* Don't revert another author's changes without permission from the
original author.
original author.
...
...
docs/ref/contrib/auth.txt
Dosyayı görüntüle @
8fbf13a6
...
@@ -168,7 +168,7 @@ Methods
...
@@ -168,7 +168,7 @@ Methods
.. method:: get_group_permissions(obj=None)
.. method:: get_group_permissions(obj=None)
Returns a set of permission strings that the user has, through
his/he
r
Returns a set of permission strings that the user has, through
thei
r
groups.
groups.
If ``obj`` is passed in, only returns the group permissions for
If ``obj`` is passed in, only returns the group permissions for
...
...
docs/topics/auth/customizing.txt
Dosyayı görüntüle @
8fbf13a6
...
@@ -819,7 +819,7 @@ methods and attributes:
...
@@ -819,7 +819,7 @@ methods and attributes:
.. method:: models.PermissionsMixin.get_group_permissions(obj=None)
.. method:: models.PermissionsMixin.get_group_permissions(obj=None)
Returns a set of permission strings that the user has, through
his/he
r
Returns a set of permission strings that the user has, through
thei
r
groups.
groups.
If ``obj`` is passed in, only returns the group permissions for
If ``obj`` is passed in, only returns the group permissions for
...
...
docs/topics/auth/default.txt
Dosyayı görüntüle @
8fbf13a6
...
@@ -1225,7 +1225,7 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
...
@@ -1225,7 +1225,7 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
.. class:: SetPasswordForm
.. class:: SetPasswordForm
A form that lets a user change
his/he
r password without entering the old
A form that lets a user change
thei
r password without entering the old
password.
password.
.. class:: UserChangeForm
.. class:: UserChangeForm
...
@@ -1243,7 +1243,7 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
...
@@ -1243,7 +1243,7 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
Authentication data in templates
Authentication data in templates
--------------------------------
--------------------------------
The currently logged-in user and
his/he
r permissions are made available in the
The currently logged-in user and
thei
r permissions are made available in the
:doc:`template context </ref/templates/api>` when you use
:doc:`template context </ref/templates/api>` when you use
:class:`~django.template.RequestContext`.
:class:`~django.template.RequestContext`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment