This isn't really a question, I'm just trying to understand why in the
admin code for searching on the changelist page it creates a new
QuerySet object instead of using the same one?

lines 730-734 admin/views/main.py
               other_qs = QuerySet(self.model)
               if qs._select_related:
                   other_qs = other_qs.select_related()
               other_qs = other_qs.filter(reduce(operator.or_,
or_queries))
               qs = qs & other_qs

The disadvatage of this (from my point of view) is that it any changes
the admin manager might otherwise make have no effect when searching
the fields.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to