def search(self):
try:<EOL><INDENT>filters = json.loads(self.query)<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT>result = self.model_query<EOL>if '<STR_LIT>'in filters.keys():<EOL><INDENT>result = self.parse_filter(filters['<STR_LIT>'])<EOL><DEDENT>if '<STR_LIT>'in filters.keys():<EOL><INDENT>result = result.order_by(*self.sort(filters['<STR_LIT>']))<EOL><DEDENT>return result<EOL>
This is the most important method