Skip to content

Commit 034ea74

Browse files
committed
Use Django 1.10 queryset repr
1 parent 7ac28c8 commit 034ea74

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cs/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Zkus to ve své šabloně `blog/templates/blog/post_list.html`. Nahraď vše od
2727
Jak vidíš, dostali jsme toto:
2828

2929
```
30-
[<Post: My second post>, <Post: My first post>]
30+
<QuerySet [<Post: My second post>, <Post: My first post>]>
3131
```
3232

3333
To znamená, že to Django chápe jako seznam objektů. Vzpomínáš si z kapitoly **Úvod do pythonu**, jak můžeme zobrazit seznam? Ano, pomocí for smyček! V Django šabloně je použiješ takto:

en/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ As you can see, all we've got is this:
2727

2828
{% filename %}blog/templates/blog/post_list.html{% endfilename %}
2929
```html
30-
[<Post: My second post>, <Post: My first post>]
30+
<QuerySet [<Post: My second post>, <Post: My first post>]>
3131
```
3232

3333
This means that Django understands it as a list of objects. Remember from __Introduction to Python__ how we can display lists? Yes, with for loops! In a Django template you do them like this:

fr/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Essayez de faire la même chose avec votre template `blog/templates/blog/post_li
2727
Comme vous pouvez le voir, tout ce que nous avons, c'est ceci :
2828

2929
```python
30-
[<Post: My second post>, <Post: My first post>]
30+
<QuerySet [<Post: My second post>, <Post: My first post>]>
3131
```
3232

3333
Cela signifie que Django l'interprète comme une liste d'objets. Essayez de vous rappeler comment afficher des listes en Python. Si vous avez un trou de mémoire, allez voir dans le chapitre **Introduction à Python**. Vous avez trouvé ? Avec des boucles ! Dans un template Django, vous pouvez les écrire de la façon suivante :

sk/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Vyskúšaj to vo svojej šablóne `blog/templates/blog/post_list.html`. Nahraď
2727
Ako vidíš, dostali sme len toto:
2828

2929
```
30-
[<Post: My second post>, <Post: My first post>]
30+
<QuerySet [<Post: My second post>, <Post: My first post>]>
3131
```
3232

3333
To znamená, že to Django chápe ako zoznam objektov. Pamätáš si z kapitoly **Úvod do Pythonu** ako môžeme zobraziť zoznamy? Áno, cyklami! V Django šablóne ich urobíš takto:

tr/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Bunu `blog/templates/blog/post_list.html` şablonunda deneyelim. İkinci `<div>`
2727
Gördüğümüz sadece bu:
2828

2929
```
30-
[<Post: Gönderi 2>, <Post: Gönderi 1>]
30+
<QuerySet [<Post: Gönderi 2>, <Post: Gönderi 1>]>
3131
```
3232

3333
Yani Django bunu bir nesneler listesi olarak algılıyor. **Python'a giriş**'ten listelerin nasıl gösterildiğini hatırlıyor musun? Evet, döngülerle! Bir Django template ile bunu şöyle yaparsın:

0 commit comments

Comments
 (0)