On Thu, Feb 24, 2011 at 11:20 AM, myx <i.virab...@gmail.com> wrote:

> I found a solution which is suitable for me.
> As it turns out, all those methods just clone queryset, and then call
> appropriate methods of Query object.
> So, for example, to set ordering and to get a slice without cloning
> queryset, I can do the following:
>
> qs.query.add_ordering('-created')
> qs.query.set_limits(high=10)
>
>
Note you are now using a Django-internal API that is not guaranteed to be
stable (see http://docs.djangoproject.com/en/1.2/misc/api-stability/). Your
code could very well break in some future version of Django.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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