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
8f839aaa
Kaydet (Commit)
8f839aaa
authored
Şub 25, 2013
tarafından
Carl Meyer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor edits to some recently-added admin docs.
üst
7b49da1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
index.txt
docs/ref/contrib/admin/index.txt
+11
-11
No files found.
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
8f839aaa
...
...
@@ -186,10 +186,10 @@ subclass::
values defined in :attr:`ModelAdmin.readonly_fields` to be displayed as
read-only.
The ``fields`` option, unlike :attr:`~ModelAdmin.list_display`, may
contain
only field names of
the model or the form specified by
:attr:`~ModelAdmin.form`
, not callables. However it *can* contain callables
i
f they are defined i
n :attr:`~ModelAdmin.readonly_fields`.
The ``fields`` option, unlike :attr:`~ModelAdmin.list_display`, may
only
contain names of fields on
the model or the form specified by
:attr:`~ModelAdmin.form`
. It may contain callables only if they are listed
in :attr:`~ModelAdmin.readonly_fields`.
To display multiple fields on the same line, wrap those fields in their own
tuple. In this example, the ``url`` and ``title`` fields will display on the
...
...
@@ -258,10 +258,10 @@ subclass::
'fields': ('first_name', 'last_name', 'address', 'city', 'state'),
}
Just like with the :attr:`~ModelAdmin.fields` option, to display
multiple fields on the same line, wrap those fields in their own
tuple. In this example, the ``first_name`` and ``last_name`` fields
will display on
the same line::
As with the :attr:`~ModelAdmin.fields` option, to display multiple
fields on the same line, wrap those fields in their own tuple. In this
example, the ``first_name`` and ``last_name`` fields will display on
the same line::
{
'fields': (('first_name', 'last_name'), 'address', 'city', 'state'),
...
...
@@ -270,9 +270,9 @@ subclass::
``fields`` can contain values defined in
:attr:`~ModelAdmin.readonly_fields` to be displayed as read-only.
If you add
a callable name to ``fields``, the same rule applies a
s
with
:attr:`~ModelAdmin.fields` option: the callable must be
specifi
ed in :attr:`~ModelAdmin.readonly_fields`.
If you add
the name of a callable to ``fields``, the same rule applie
s
as with the
:attr:`~ModelAdmin.fields` option: the callable must be
list
ed in :attr:`~ModelAdmin.readonly_fields`.
* ``classes``
A list containing extra CSS classes to apply to the fieldset.
...
...
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