Fix a crash when the search view is getting indexed.
Review Request #13642 — Created March 18, 2024 and submitted — Latest diff uploaded
A bad spider is sending some requests to the search view that are
causing error tracebacks. The issue here is that the form isn't valid,
but we were still trying to accesscleaned_data
. This change fixes
that up and tweaks stuff to make linters/static analysis happy.
Ran unit tests.