iommirocks / iommi

Your first pick for a django power cord
http://iommi.rocks
BSD 3-Clause "New" or "Revised" License
688 stars 47 forks source link

freetext search on IntegerField #490

Open berycz opened 8 months ago

berycz commented 8 months ago

(I found this "bug" by accident, I don't really need it fixed)

if you set __freetext = True on a numeric field and you're searching for a number, it works. But when you search for alpha chars (e.g. foo), you get ValueError(invalid literal for int() with base 10: 'foo')