mrjoes/flask-admin — pull request #87 by techniq (2012-10-03 15:10:39+00:00)
Title: Don't override query_factory if passed in form_args

Currently the kwargs are replaced regardless if those properties are set. By checking, it allows to override the query without having to override the whole field (`form_overrides`)

```python
class ContractModelView(BaseModelView):
form_args = dict(supplier=dict(query_factory=lambda: current_user.supplier_query))
```