List Info

Thread: QuerySet._combine loses where clause




QuerySet._combine loses where clause
user name
2006-05-30 16:22:19
	I have a custom manager for one of my model objects which
limits the 
objects returned. When I use the search features of the
admin interface, 
it seems most of the details of my query set get lost, so
the result is 
no longer limited by the details I passed to the 'extra'
method.
  The combining of my query set (out of the custom manager)
and the 
search query set happens in QuerySet._combine. It seems that
method 
doesn't actually combine, but clones the second query set
and returns that.

  Has anyone else had a problem with this, or could suggest
a solution ?

  I've filled a ticket about it here: 
http://code
.djangoproject.com/ticket/2038

  Thanks in advance,
  Graham.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

QuerySet._combine loses where clause
user name
2006-05-31 14:56:03
On 5/30/06, Graham King <grahamdarkcoding.net> wrote:
>         I have a custom manager for one of my model
objects which limits the
> objects returned. When I use the search features of the
admin interface,
> it seems most of the details of my query set get lost,
so the result is
> no longer limited by the details I passed to the
'extra' method.
>   The combining of my query set (out of the custom
manager) and the
> search query set happens in QuerySet._combine. It seems
that method
> doesn't actually combine, but clones the second query
set and returns that.
>
>   Has anyone else had a problem with this, or could
suggest a solution ?
>
>   I've filled a ticket about it here:
> http://code
.djangoproject.com/ticket/2038

Hey Graham,

I've checked in that patch and closed the ticket. Thank you
for reporting!

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )