On Aug 9, 8:13 am, chefsmart <moran.cors...@gmail.com> wrote: > I already have the objects in an earlier chunk of the code. I don't > want to hit the database again to get something I already have in > another form. That is what I mean when I say that code like my_qs = > MyModel.objects.filter(pk=obj1.pk) is utterly silly. I already have > the objects from earlier db queries; I just need them in a queryset.
But you haven't explained why converting the querysets to a list and concatenating them, or just using itertools.chain(q1, q2), wouldn't work. What sort of code do you have that relies on a queryset, and doesn't work with anything else? Show it. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.