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
7f225880
Kaydet (Commit)
7f225880
authored
Haz 22, 2012
tarafından
Florian Apolloner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrected the `instance_dict` description for form wizards.
üst
6bc1b222
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
views.py
django/contrib/formtools/wizard/views.py
+3
-2
form-wizard.txt
docs/ref/contrib/formtools/form-wizard.txt
+2
-3
No files found.
django/contrib/formtools/wizard/views.py
Dosyayı görüntüle @
7f225880
...
@@ -133,8 +133,9 @@ class WizardView(TemplateView):
...
@@ -133,8 +133,9 @@ class WizardView(TemplateView):
The key should be equal to the `step_name` in the `form_list` (or
The key should be equal to the `step_name` in the `form_list` (or
the str of the zero based counter - if no step_names added in the
the str of the zero based counter - if no step_names added in the
`form_list`)
`form_list`)
* `instance_dict` - contains a dictionary of instance objects. This
* `instance_dict` - contains a dictionary whose values are model
is only used when `ModelForm`s are used. The key should be equal to
instances if the step is based on a ``ModelForm`` and querysets if
the step is based on a ``ModelFormSet``. The key should be equal to
the `step_name` in the `form_list`. Same rules as for `initial_dict`
the `step_name` in the `form_list`. Same rules as for `initial_dict`
apply.
apply.
* `condition_dict` - contains a dictionary of boolean values or
* `condition_dict` - contains a dictionary of boolean values or
...
...
docs/ref/contrib/formtools/form-wizard.txt
Dosyayı görüntüle @
7f225880
...
@@ -554,9 +554,8 @@ How to work with ModelForm and ModelFormSet
...
@@ -554,9 +554,8 @@ How to work with ModelForm and ModelFormSet
WizardView supports :doc:`ModelForms </topics/forms/modelforms>` and
WizardView supports :doc:`ModelForms </topics/forms/modelforms>` and
:ref:`ModelFormSets <model-formsets>`. Additionally to
:ref:`ModelFormSets <model-formsets>`. Additionally to
:attr:`~WizardView.initial_dict`, the :meth:`~WizardView.as_view` method takes
:attr:`~WizardView.initial_dict`, the :meth:`~WizardView.as_view` method takes
an ``instance_dict`` argument that should contain instances of ``ModelForm`` and
an ``instance_dict`` argument that should contain model instances for steps
``ModelFormSet``. Similarly to :attr:`~WizardView.initial_dict`, these
based on ``ModelForm`` and querysets for steps based on ``ModelFormSet``.
dictionary key values should be equal to the step number in the form list.
Usage of ``NamedUrlWizardView``
Usage of ``NamedUrlWizardView``
===============================
===============================
...
...
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