goinnn / django-multiselectfield

A Multiple Choice model field
GNU Lesser General Public License v3.0
450 stars 208 forks source link

sqlite3.ProgrammingError: Error binding parameter 1: type '_FakeSqlVal' is not supported #156

Open Pfizer-BradleyBare opened 3 months ago

Pfizer-BradleyBare commented 3 months ago

Getting the error in the title when using sqlite3 with Django 4.1.6 and python 3.11. Is this library compatible with sqlite?

This is the model I made to test the library.

`MY_CHOICES2 = ( (1, "Item title 2.1"), (2, "Item title 2.2"), (3, "Item title 2.3"), (4, "Item title 2.4"), (5, "Item title 2.5"), )

class Test(models.Model): active_channels = MultiSelectField( choices=MY_CHOICES2, )`

Pfizer-BradleyBare commented 3 months ago

Yeah I'm not sure it is sqlite3 related. I think parsing the selection is not working. I tried looking at the MultiSelectField model but I cannot figure out where the issue is.

florianschieder commented 3 weeks ago

imho this is DB independent. see #158