<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def show_active_only(self, state):
 """ Set active only to true or false on a copy of this query """

        query = self._copy()
        query.active_only = state
        return query