1👍
✅
You have named your field code_id
and your filter is: code__startswith
This should work:
DB.objects.filter(code_id__startswith='2100')
Source:stackexchange.com