22👍
✅
This code is incorrect :
Feed.objects.filter(location__areaHash__istartwith='*****')
Try :
Feed.objects.filter(location__areaHash__istartswith='*****')
2👍
Another Workaround could be using icontains (keeping case-insensitivity as @shacker noticed) :
Feed.objects.filter(location__areaHash__icontains='*****')
Source:stackexchange.com