On 12/03/2010 10:04 AM, Waldemar Kornewald wrote:
You probably don't want to use those aliases. Instead, you should use a separate alias namespace for embedded object filters. Otherwise you'll have to deal with the complex JOIN code in the backend unnecessary. Aliases for embedded objects could just be simple integers that get incremented for each field independently with each new filter() call that mentions the respective field.
Well that's where I'm stuck. I have no idea about how I could know in the `add_filter` method, called from `add_q` for every filter, whether the filters already added to the where clause come from the same `.filter` call or from another.
-- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
