There is a way to check if a model field contains a substring? django python sql I wanted to know if I can do things like this: full_string = "12345" substring = "123" Model.objects.filter.contains(field = substring) More or less like this. In summary I want to search for a substring, not the string itself. AdvertisementAnswer Take a look at Django contains and icontains