nl: code set to string 'invalid_pk_value and params with an entry: pk for 'pk'. call the method self.queryset.filter with an argument, unpacked dictionary with an entry: value for string '__in' appended to key,
code: qs = self . queryset . filter ( ** { '%s__in' % key : value } )