You can't really add an object to queryset like that.

If you don't want to generate a list in the view, you can chain the
querysets

chained_qs = chain(qs1,qs2)

On Sun, Aug 8, 2010 at 9:45 AM, chefsmart <moran.cors...@gmail.com> wrote:

> I had asked this on stackoverflow, but I guess I couldn't explain
> myself clearly enough. I'll try to ask again here:
>
> Say I have two objects obj1 and obj2 of the same model (MyModel), now
> I would like to add these objects to a new QuerySet. Can I create a
> QuerySet manually like the following
>
> my_qs = QuerySet(model=MyModel)
>
> and then add obj1 and obj2 to this QuerySet like
>
> my_qs.add(obj1)
> my_qs.add(obj2)
>
> Regards,
> CM.
>
>
> --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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.

Reply via email to