質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -563,3 +563,35 @@
|
|
563
563
|
複雑な質問で申し訳ありません。
|
564
564
|
|
565
565
|
解決方法をご教授頂ければ幸いです。
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
---
|
570
|
+
|
571
|
+
####追記
|
572
|
+
|
573
|
+
view
|
574
|
+
|
575
|
+
```python
|
576
|
+
|
577
|
+
class DmListView(LoginRequiredMixin, generic.ListView):
|
578
|
+
|
579
|
+
model = Connection
|
580
|
+
|
581
|
+
template_name = 'dm/dm_list.html'
|
582
|
+
|
583
|
+
context_object_name = 'users'
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
def get_queryset(self, **kwargs):
|
588
|
+
|
589
|
+
username = self.kwargs['username']
|
590
|
+
|
591
|
+
return Connection.objects.filter(follower__username=username)
|
592
|
+
|
593
|
+
```
|
594
|
+
|
595
|
+
エラー内容
|
596
|
+
|
597
|
+
![イメージ説明](6bab8b89e9fdf715297f6c1eb0661b90.png)
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -450,7 +450,7 @@
|
|
450
450
|
|
451
451
|
{% endfor %}
|
452
452
|
|
453
|
-
<a href="{% url '
|
453
|
+
<a href="{% url 'app:tweet_list' %}">
|
454
454
|
|
455
455
|
<button type="button" class="btn btn-lg btn-secondary mt-5">戻る<i class="fas fa-backward"></i></button>
|
456
456
|
|