1👍
✅
You can use double-underscore notation to follow ForeignKey
relationship:
Q(user__first_name__contains)
Hope that helps.
Source:stackexchange.com