froala / django-froala-editor

Package to integrate Froala WYSIWYG HTML rich text editor with Django.
https://froala.com/wysiwyg-editor
284 stars 71 forks source link

Filtering by FroalaField() #59

Open lobothijau opened 6 years ago

lobothijau commented 6 years ago

I have a model with FroalaField() and I want to filter data by the field. Unfortunately the Model.objects.filter() doesnt have option to filter by field__contains. How do I search on the field?

CARocha commented 4 months ago

Really doesn't work

from django.db.models import Q
posts = Post.objects.filter(Q(content__icontains='Django'))