2👍
✅
Use Q
to do an OR query.
from django.db.models import Q
UserComment.objects.filter(Q(sender=request.user) | Q(receiver=request.user))
Source:stackexchange.com