[Django]-Filter objects by exact position of character 23 December 2023 by thecoderscamp.com 5👍 ✅ You could use a regex lookup. Model.objects.filter(code__regex=r'^.{5}A') 👤Daniel Roseman [Django]-How to return JsonResponse in Django generic ListView Source:stackexchange.com