Fix call to get_model in search view.
Add test for the search view.
Version bump to 3.1.8
Added tag 3.1.8 for changeset 3a65b548dca4
Update auto generated CHANGELOG, requirements.