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
7968bb7f
Kaydet (Commit)
7968bb7f
authored
Agu 26, 2016
tarafından
Baptiste Mispelon
Kaydeden (comit)
Tim Graham
Agu 26, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed incorrect variable name in {% regroup %} docs.
üst
47f57d67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
builtins.txt
docs/ref/templates/builtins.txt
+4
-4
No files found.
docs/ref/templates/builtins.txt
Dosyayı görüntüle @
7968bb7f
...
@@ -842,8 +842,8 @@ output (as a string) inside a variable. This is useful if you want to use
...
@@ -842,8 +842,8 @@ output (as a string) inside a variable. This is useful if you want to use
Regroups a list of alike objects by a common attribute.
Regroups a list of alike objects by a common attribute.
This complex tag is best illustrated by way of an example: say that
"places" is
This complex tag is best illustrated by way of an example: say that
``cities``
a list of cities represented by dictionaries containing ``"name"``,
is
a list of cities represented by dictionaries containing ``"name"``,
``"population"``, and ``"country"`` keys:
``"population"``, and ``"country"`` keys:
.. code-block:: python
.. code-block:: python
...
@@ -882,8 +882,8 @@ The following snippet of template code would accomplish this::
...
@@ -882,8 +882,8 @@ The following snippet of template code would accomplish this::
{% for country in country_list %}
{% for country in country_list %}
<li>{{ country.grouper }}
<li>{{ country.grouper }}
<ul>
<ul>
{% for
item
in country.list %}
{% for
city
in country.list %}
<li>{{
item.name }}: {{ item
.population }}</li>
<li>{{
city.name }}: {{ city
.population }}</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
</li>
</li>
...
...
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