2👍
✅
Comma separated you’re going to have to do this by hand:
categories = request.GET.get('category').split(',')
The more Django way to do this it so change your query string to be
?category=slug1&category=slug2
.
Then you could use
categories = request.GET.getlist('category')
👤John
Source:stackexchange.com