Returns the query provided by the user. Returns an empty string if the query is invalid.
(self)
| 70 | return self.form_class(data, **kwargs) |
| 71 | |
| 72 | def get_query(self): |
| 73 | """ |
| 74 | Returns the query provided by the user. |
| 75 | |
| 76 | Returns an empty string if the query is invalid. |
| 77 | """ |
| 78 | if self.form.is_valid(): |
| 79 | return self.form.cleaned_data["q"] |
| 80 | |
| 81 | return "" |
| 82 | |
| 83 | def get_results(self): |
| 84 | """ |
no outgoing calls