[Fixed]-Queryset filter for part of a number

1👍

You have named your field code_id and your filter is: code__startswith

This should work:

DB.objects.filter(code_id__startswith='2100')

Leave a comment