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
3ffbd545
Kaydet (Commit)
3ffbd545
authored
Eki 11, 2017
tarafından
LeeHanYeong
Kaydeden (comit)
Tim Graham
Eki 13, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed incorrect reference to ModelChoiceField in Field.choices docs.
üst
941b0a5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
models.txt
docs/topics/db/models.txt
+5
-4
No files found.
docs/topics/db/models.txt
Dosyayı görüntüle @
3ffbd545
...
@@ -170,10 +170,11 @@ ones:
...
@@ -170,10 +170,11 @@ ones:
)
)
The first element in each tuple is the value that will be stored in the
The first element in each tuple is the value that will be stored in the
database. The second element will be displayed by the default form widget
database. The second element is displayed by the field's form widget.
or in a :class:`~django.forms.ModelChoiceField`. Given a model instance,
the display value for a choices field can be accessed using the
Given a model instance, the display value for a field with ``choices`` can
``get_FOO_display()`` method. For example::
be accessed using the :meth:`~django.db.models.Model.get_FOO_display`
method. For example::
from django.db import models
from django.db import models
...
...
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