<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def paginate_query(self, query):
 """ Return single page of results or `None` if pagination is disabled. """


        if self.paginator is None:
            return None

        return self.paginator.paginate_query(query, self.request)