can use

```python
query = request.GET.get("query", {})
```