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
48c420d9
Kaydet (Commit)
48c420d9
authored
Eyl 05, 2015
tarafından
David Sanders
Kaydeden (comit)
Tim Graham
Eyl 05, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added default value for default kwargs for QueryDict.
üst
2dc9ec56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
request-response.txt
docs/ref/request-response.txt
+4
-4
No files found.
docs/ref/request-response.txt
Dosyayı görüntüle @
48c420d9
...
...
@@ -425,12 +425,12 @@ a subclass of dictionary. Exceptions are outlined here:
Returns ``True`` if the given key is set. This lets you do, e.g., ``if "foo"
in request.GET``.
.. method:: QueryDict.get(key, default)
.. method:: QueryDict.get(key, default
=None
)
Uses the same logic as ``__getitem__()`` above, with a hook for returning a
default value if the key doesn't exist.
.. method:: QueryDict.setdefault(key, default)
.. method:: QueryDict.setdefault(key, default
=None
)
Just like the standard dictionary ``setdefault()`` method, except it uses
``__setitem__()`` internally.
...
...
@@ -488,7 +488,7 @@ In addition, ``QueryDict`` has the following methods:
Returns a copy of the object, using ``copy.deepcopy()`` from the Python
standard library. This copy will be mutable even if the original was not.
.. method:: QueryDict.getlist(key, default)
.. method:: QueryDict.getlist(key, default
=None
)
Returns the data with the requested key, as a Python list. Returns an
empty list if the key doesn't exist and no default value was provided.
...
...
@@ -503,7 +503,7 @@ In addition, ``QueryDict`` has the following methods:
Appends an item to the internal list associated with key.
.. method:: QueryDict.setlistdefault(key, default_list)
.. method:: QueryDict.setlistdefault(key, default_list
=None
)
Just like ``setdefault``, except it takes a list of values instead of a
single value.
...
...
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