<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_queryset(self):
        '''We want to still be able to modify archived users, but they
        shouldn't show up on list views.

        We have an archived query param, where 'true' shows archived, 'false'
        omits them, and 'both' shows both.'''
        if self.action == 'list':
            active = get_true_false_both(
                self.request.query_params, 'active', 'true')
            if active == 'true':
                return self.queryset.filter(is_active=True)
            if active == 'false':
                return self.queryset.filter(is_active=False)
        return self.queryset