[Answered ]-REST API endpoint call of a single id gives other id results with similar begining alphabtes when called by name

1👍

qs=qs.filter(name__icontains=query) line performs a pattern matching filtering. If you need exact filtering, then use __exact postfix instead of __contains:

qs=qs.filter(name__exact=query)
👤Shadow

Leave a comment