質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,7 +98,13 @@
|
|
98
98
|
|
99
99
|
chat = get_object_or_404(Chat, id=ChatID)
|
100
100
|
|
101
|
+
#この時点ではprint(chat) => 1 で pkがちゃんと返ってくる
|
102
|
+
|
101
103
|
return chat.messages.order_by('-timestamp').all()[:30]
|
104
|
+
|
105
|
+
#chat.messages.order_by('-timestamp').all()[:30] が空
|
106
|
+
|
107
|
+
|
102
108
|
|
103
109
|
```
|
104
110
|
|