- @decoratable.method
- def search(self, keywords):
- return self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords))
+ def search(self, keywords, **kwargs):
+ return False, self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords))