Hi all,
So i have a page with the following url format: http://tld/admin/main/report/, and i would like to pass a get request to the end to filter the queryset: ?q=+2 is all of my report for example. In the ReportAdmin(ModelAdmin)
, when overriding queryset(self, request)
, inside that, i'd like to do request.GET.get('somevar')
, but the somevar is only good with q, not with anything else (will switch to e, which is error, if passed anything else). I've discovered that q is used for search query string, so there is a conflict. Is there any way of adding new parameter variable to the list?
Thanks a lot!
Jason