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
fdaaa241
Kaydet (Commit)
fdaaa241
authored
Şub 02, 2013
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #19700 - Added documentation for BoundField.field.
Thanks Tiberiu Ana for the report and patch.
üst
a1c470a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
index.txt
docs/topics/forms/index.txt
+7
-1
No files found.
docs/topics/forms/index.txt
Dosyayı görüntüle @
fdaaa241
...
@@ -336,7 +336,7 @@ attributes, which can be useful in your templates:
...
@@ -336,7 +336,7 @@ attributes, which can be useful in your templates:
case, each object in the loop is a simple string containing the error
case, each object in the loop is a simple string containing the error
message.
message.
``
field.is_hidden
``
``
{{ field.is_hidden }}
``
This attribute is ``True`` if the form field is a hidden field and
This attribute is ``True`` if the form field is a hidden field and
``False`` otherwise. It's not particularly useful as a template
``False`` otherwise. It's not particularly useful as a template
variable, but could be useful in conditional tests such as::
variable, but could be useful in conditional tests such as::
...
@@ -345,6 +345,12 @@ attributes, which can be useful in your templates:
...
@@ -345,6 +345,12 @@ attributes, which can be useful in your templates:
{# Do something special #}
{# Do something special #}
{% endif %}
{% endif %}
``{{ field.field }}``
The :class:`~django.forms.Field` instance from the form class that
this :class:`~django.forms.BoundField` wraps. You can use it to access
:class:`~django.forms.Field` attributes , e.g.
``{{ char_field.field.max_length }}``.
Looping over hidden and visible fields
Looping over hidden and visible fields
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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