def METHOD_NAME(self, items, user):
    """
    If specified, filter by the `file_cat_id` and/or `file_sub_cat_name` passed in
    """
    file_cat_id = self.kwargs.get('file_cat_id', None)
    if file_cat_id:
        try:
            file_cat_id = int(file_cat_id)
            items = items.filter(file_cat__id=file_cat_id)
        except ValueError:
            raise
    file_sub_cat_name = self.kwargs.get('file_sub_cat_name', '').strip('"\' ')
    if file_sub_cat_name:
        items = items.filter(file_sub_cat__name__iexact=file_sub_cat_name)
    return items