Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions en/homework_create_more_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ You'll need to import `Comment` at the top of the file:

```python
from .models import Post, Comment
from django.contrib.auth.decorators import login_required
```

Everything works! There is one small tweak we can make. In our post list page -- under posts -- we currently see the number of all the comments the blog post has received. Let's change that to show the number of *approved* comments there.
Expand Down
1 change: 1 addition & 0 deletions es/homework_create_more_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ Necesitas importar `Comment` al comienzo del archivo:

```python
from .models import Post, Comment
from django.contrib.auth.decorators import login_required
```

¡Todo funciona! Hay un pequeño cambio que podemos hacer. en nuestra página de lista -- debajo de posts -- actualmente vemos el número de los comentarios que el post ha recibifo. Vamos a cambiar esto para ver el número de comentarios aprobados.
Expand Down
1 change: 1 addition & 0 deletions fa/homework_create_more_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def comment_remove(request, pk):

```python
from .models import Post, Comment
from django.contrib.auth.decorators import login_required
```

همه چیز کار می‌کند! فقط یک تغییر کوچک باقی مانده که انجام بدهیم. در صفحه لیست پست‌ها، ما تعداد همه کامنت‌هایی که هر پست دریافت کرده را می‌بینیم. بیایید آن را به تعداد کامنت‌های *تأییدشده* تغییر بدهیم.
Expand Down
1 change: 1 addition & 0 deletions ja/homework_create_more_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def comment_remove(request, pk):

```python
from .models import Post, Comment
from django.contrib.auth.decorators import login_required
```

すべて動作します!私たちにできる小さな微調整があります。投稿一覧ページ(の投稿の下)には、現在、投稿が受け取ったすべてのコメントの数が表示されます。*承認された* コメントの数を表示するように変更しましょう。
Expand Down
1 change: 1 addition & 0 deletions ko/homework_create_more_models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def comment_remove(request, pk):

```python
from .models import Post, Comment
from django.contrib.auth.decorators import login_required
```

모든 것이 잘 작동되네요! 하지만 마지막 한 가지가 남았어요. 현재 post_list 페이지에서는 등록된 모든 댓글의 개수가 보이는데요. *승인된* 댓글의 개수만 보이게 수정해봅시다.
Expand Down