Have you tried iterating over a list in the template *YET*??
If not, do it now and see the results :)

If you really need a queryset only, below answer from below post will get
it done.
https://stackoverflow.com/questions/1058135/django-convert-a-list-back-to-a-queryset

"Ok...this post is now old BUT what you could do is get all the ids of the
objects in your list, then perform a
model.objects.filter(pk__in=list_of_ids)"

Cheers!


Regards,
Chetan Ganji
+91-900-483-4183
[email protected]
http://ryucoder.in


On Mon, May 20, 2019 at 8:12 AM 이규남 <[email protected]> wrote:

> Thank you.
> By the way, I have already completed the model change in json.
> I just want to change the model to queryset.
> You have to use queryset when rendering to receive all the posts.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/cd217325-e405-4dfb-9853-3eeb01d3ec7a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/cd217325-e405-4dfb-9853-3eeb01d3ec7a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAMKMUjs72oOa0xZtY_cLveCxFQC3UpLf%3DyhVcxnQgxuLRMH7QQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to