Ticket #4977: main.patch

File main.patch, 529 bytes (added by QingFeng, 8 years ago)

patch

  • .py

    old new  
    740740                if qs._select_related:
    741741                    other_qs = other_qs.select_related()
    742742                other_qs = other_qs.filter(reduce(operator.or_, or_queries))
    743                 qs = qs & other_qs
     743                #qs = qs & other_qs
     744                qs = qs | other_qs
    744745
    745746        if self.opts.one_to_one_field:
    746747            qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to)
Back to Top