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
5c35b4a8
Kaydet (Commit)
5c35b4a8
authored
Haz 05, 2015
tarafından
Russell Keith-Magee
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added release notes for feature added in
fe21fb81
üst
14dead04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
formsets.py
django/forms/formsets.py
+3
-0
1.9.txt
docs/releases/1.9.txt
+3
-0
formsets.txt
docs/topics/forms/formsets.txt
+2
-0
No files found.
django/forms/formsets.py
Dosyayı görüntüle @
5c35b4a8
...
@@ -147,6 +147,9 @@ class BaseFormSet(object):
...
@@ -147,6 +147,9 @@ class BaseFormSet(object):
def
get_form_kwargs
(
self
,
index
):
def
get_form_kwargs
(
self
,
index
):
"""
"""
Return additional keyword arguments for each individual formset form.
Return additional keyword arguments for each individual formset form.
index will be None if the form being constructed is a new empty
form.
"""
"""
return
self
.
form_kwargs
.
copy
()
return
self
.
form_kwargs
.
copy
()
...
...
docs/releases/1.9.txt
Dosyayı görüntüle @
5c35b4a8
...
@@ -173,6 +173,9 @@ Forms
...
@@ -173,6 +173,9 @@ Forms
* A form prefix can be specified inside a form class, not only when
* A form prefix can be specified inside a form class, not only when
instantiating a form. See :ref:`form-prefix` for details.
instantiating a form. See :ref:`form-prefix` for details.
* You can now :ref:`specify keyword arguments <custom-formset-form-kwargs>`
that you want to pass to the constructor of forms in a formset.
Generic Views
Generic Views
^^^^^^^^^^^^^
^^^^^^^^^^^^^
...
...
docs/topics/forms/formsets.txt
Dosyayı görüntüle @
5c35b4a8
...
@@ -535,6 +535,8 @@ default fields/attributes of the order and deletion fields::
...
@@ -535,6 +535,8 @@ default fields/attributes of the order and deletion fields::
<tr><th><label for="id_form-0-pub_date">Pub date:</label></th><td><input type="text" name="form-0-pub_date" id="id_form-0-pub_date" /></td></tr>
<tr><th><label for="id_form-0-pub_date">Pub date:</label></th><td><input type="text" name="form-0-pub_date" id="id_form-0-pub_date" /></td></tr>
<tr><th><label for="id_form-0-my_field">My field:</label></th><td><input type="text" name="form-0-my_field" id="id_form-0-my_field" /></td></tr>
<tr><th><label for="id_form-0-my_field">My field:</label></th><td><input type="text" name="form-0-my_field" id="id_form-0-my_field" /></td></tr>
.. _custom-formset-form-kwargs:
Passing custom parameters to formset forms
Passing custom parameters to formset forms
------------------------------------------
------------------------------------------
...
...
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