tangentlabs/django-oscar — pull request #388 by jerzyk (2012-11-23 15:27:15+00:00)
Title: dashboard/order/search - search by name 

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 couldn't find one quickly... so this one at least 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 sets `response_format` field value to None, so when form is binded in the code, rendered radio group will have no default value). This change will make sure that 'html' output is always set as a default value.