You could simplify this:

```python
    result = None
    if form.validate_on_submit():
        result = form.get_results()
    return render_template('forum/seatch_result.html', form=form, result=result)
```