tangentlabs/django-oscar — pull request #387 by jerzyk (2012-11-23 14:04:32+00:00)
Title: dashboard/orders search changes

there are two issues addressed by this pull request:

1. Advanced search by customer name looks only in the user's fields for the name, thus all anonymous orders are ignored. I could not find a nice solution that will not have too many "|Q()" operations, but could'nt find one quickly.. so this is one, that is working. I've added one more check - if configuration allows anonymous orders, then search on the user addresses, if not - leave it as it was

2. on the advanced search form, there is a field specifying response format, unfortunately when you first submit a search form, with just an order_number set, it set's field value to None, making simple search non-working. This change will make sure that 'html' output is always set as a default value.