@classmethod
    def search(cls, query):
        if not query:
            return ''

        search_query = '%{0}%'.format(query)

        return or_(Issue.email.ilike(search_query))
Search a resource by 1 or more fields.
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/issue/models.py/Issue.search