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
77f3d7ad
Kaydet (Commit)
77f3d7ad
authored
Haz 09, 2015
tarafından
Matt Deacalion Stevens
Kaydeden (comit)
Tim Graham
Haz 09, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarified the default form widgets for model number fields in docs
üst
f67127e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
fields.txt
docs/ref/models/fields.txt
+8
-3
No files found.
docs/ref/models/fields.txt
Dosyayı görüntüle @
77f3d7ad
...
@@ -557,7 +557,9 @@ decimal places::
...
@@ -557,7 +557,9 @@ decimal places::
models.DecimalField(..., max_digits=19, decimal_places=10)
models.DecimalField(..., max_digits=19, decimal_places=10)
The default form widget for this field is a :class:`~django.forms.TextInput`.
The default form widget for this field is a :class:`~django.forms.NumberInput`
when :attr:`~django.forms.Field.localize` is ``False`` or
:class:`~django.forms.TextInput` otherwise.
.. note::
.. note::
...
@@ -872,7 +874,9 @@ can change the maximum length using the :attr:`~CharField.max_length` argument.
...
@@ -872,7 +874,9 @@ can change the maximum length using the :attr:`~CharField.max_length` argument.
A floating-point number represented in Python by a ``float`` instance.
A floating-point number represented in Python by a ``float`` instance.
The default form widget for this field is a :class:`~django.forms.TextInput`.
The default form widget for this field is a :class:`~django.forms.NumberInput`
when :attr:`~django.forms.Field.localize` is ``False`` or
:class:`~django.forms.TextInput` otherwise.
.. _floatfield_vs_decimalfield:
.. _floatfield_vs_decimalfield:
...
@@ -927,7 +931,8 @@ The default form widget for this field is a
...
@@ -927,7 +931,8 @@ The default form widget for this field is a
An integer. Values from ``-2147483648`` to ``2147483647`` are safe in all
An integer. Values from ``-2147483648`` to ``2147483647`` are safe in all
databases supported by Django. The default form widget for this field is a
databases supported by Django. The default form widget for this field is a
:class:`~django.forms.TextInput`.
:class:`~django.forms.NumberInput` when :attr:`~django.forms.Field.localize`
is ``False`` or :class:`~django.forms.TextInput` otherwise.
``GenericIPAddressField``
``GenericIPAddressField``
-------------------------
-------------------------
...
...
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