Is there a particular reason to use `setattr`? How about just doing `request.qtype = 1` etc?