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
24ba5f7f
Kaydet (Commit)
24ba5f7f
authored
Haz 26, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.
Backport of
5359188b
from master
üst
43d7566c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
auth.txt
docs/ref/contrib/auth.txt
+20
-16
No files found.
docs/ref/contrib/auth.txt
Dosyayı görüntüle @
24ba5f7f
...
...
@@ -307,18 +307,20 @@ Fields
:class:`~django.contrib.auth.models.Permission` objects have the following
fields:
.. attribute:: name
.. class:: models.Permission
.. attribute:: name
Required. 50 characters or fewer. Example: ``'Can vote'``.
Required. 50 characters or fewer. Example: ``'Can vote'``.
.. attribute:: content_type
.. attribute:: content_type
Required. A reference to the ``django_content_type`` database table, which
contains a record for each installed Django
model.
Required. A reference to the ``django_content_type`` database table,
which contains a record for each installed
model.
.. attribute:: codename
.. attribute:: codename
Required. 100 characters or fewer. Example: ``'can_vote'``.
Required. 100 characters or fewer. Example: ``'can_vote'``.
Methods
-------
...
...
@@ -336,19 +338,21 @@ Fields
:class:`~django.contrib.auth.models.Group` objects have the following fields:
.. attribute:: name
.. class:: models.Group
.. attribute:: name
Required. 80 characters or fewer. Any characters are permitted. Example:
``'Awesome Users'``.
Required. 80 characters or fewer. Any characters are permitted. Example:
``'Awesome Users'``.
.. attribute:: permissions
.. attribute:: permissions
Many-to-many field to :class:`~django.contrib.auth.models.Permission`::
Many-to-many field to :class:`~django.contrib.auth.models.Permission`::
group.permissions = [permission_list]
group.permissions.add(permission, permission, ...)
group.permissions.remove(permission, permission, ...)
group.permissions.clear()
group.permissions = [permission_list]
group.permissions.add(permission, permission, ...)
group.permissions.remove(permission, permission, ...)
group.permissions.clear()
.. _topics-auth-signals:
...
...
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