1👍
✅
Well icontains
doesn’t work with relationships but with field of the related model:
searched_pending_orders = orders.filter(user__username__icontains=search_query)
Will works perfectly.
- [Answered ]-Vue.js-Failed to load resource: the server responded with a status of 401 (Unauthorized)
Source:stackexchange.com