40👍
✅
The problematic line tries to use subscript notation with method get
of the mapping GET
:
query = self.request.GET.get["q"]
The method should be called with:
query = self.request.GET.get("q")
Source:stackexchange.com