Field = cls._fields[fname] KeyError: during the slicing of a string

It could be even more precise as:

                    ('bank_account.numbers.number', 'like', '____' + number)

_ is the SQL wildcard for any one char (and % is the wildcard for any number of char)

1 Like