Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by FroalaField() #59

Open
lobothijau opened this issue Oct 23, 2018 · 1 comment
Open

Filtering by FroalaField() #59

lobothijau opened this issue Oct 23, 2018 · 1 comment

Comments

@lobothijau
Copy link

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
Copy link

CARocha commented Jun 17, 2024

Really doesn't work

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants