We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e755d commit 51cdeedCopy full SHA for 51cdeed
prompt/views.py
@@ -18,7 +18,7 @@ class Prompts(APIView):
18
19
def get(self, request):
20
"""Index Request"""
21
- prompts = Prompt.objects.all()
+ prompts = Prompt.objects.filter(owner=request.user.id)
22
data = PromptSerializer(prompts, many=True).data
23
return Response({"prompt": data})
24
# prompts = Prompt.objects.filter(owner=request.user.id)
0 commit comments